From dce2ea9091aa2bd80f9fe36e1d9f9d387aa7b54e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BF=99=E7=8B=97=E5=90=A7?= <157395749+Kauid323@users.noreply.github.com> Date: Sun, 29 Nov 2026 13:14:53 +0800 Subject: [PATCH 1/3] =?UTF-8?q?add=20=E5=9C=A8=E7=BA=BF=E8=AE=BE=E5=A4=87?= =?UTF-8?q?=20into=20user.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/v1/user.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/api/v1/user.md b/src/api/v1/user.md index 652d204f..9cb56064 100644 --- a/src/api/v1/user.md +++ b/src/api/v1/user.md @@ -850,3 +850,23 @@ POST /v1/user/device-offline "msg": "success" } ``` + +## 获取在线设备列表 + +GET v1/user/clients + +请求头: + +| 名称 | 必须 | 备注 | +| ----- | ---- | ---- | +| token | 是 | 无 | + +响应体: + +```protobuf +// 获取在线设备 + + +// 在线设备信息 + +``` From bd628ba950afb5eab863f98caab6f488f06fef0f Mon Sep 17 00:00:00 2001 From: yyyyt <116234899+yyyytawa@users.noreply.github.com> Date: Sun, 29 Nov 2026 13:26:08 +0800 Subject: [PATCH 2/3] =?UTF-8?q?docs(user/clients):=20=E4=BF=AE=E6=AD=A3?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E5=91=BD=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/v1/user.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/v1/user.md b/src/api/v1/user.md index 9cb56064..dce3f5f2 100644 --- a/src/api/v1/user.md +++ b/src/api/v1/user.md @@ -865,8 +865,8 @@ GET v1/user/clients ```protobuf // 获取在线设备 - + // 在线设备信息 - + ``` From 95dc3b569d411b808fc1e00eb7c0893bbe08b9b2 Mon Sep 17 00:00:00 2001 From: yyyyt <116234899+yyyytawa@users.noreply.github.com> Date: Sun, 29 Nov 2026 13:31:34 +0800 Subject: [PATCH 3/3] =?UTF-8?q?docs(full.proto):=20=E8=A1=A5=E5=85=85?= =?UTF-8?q?=E5=9C=A8=E7=BA=BF=E8=AE=BE=E5=A4=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/full.proto | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/full.proto b/src/full.proto index 6d8a43ac..726f42eb 100644 --- a/src/full.proto +++ b/src/full.proto @@ -349,6 +349,24 @@ message EditAvatarRequest { } // #endregion EditAvatarRequest +// 在线设备 +// #region ClientsResponse +message ClientsResponse { + Status status = 1; // 响应状态 + ClientsInfo devices = 2; // 设备列表(多个) +} +// #endregion ClientsResponse + +// 在线设备列表 +// #region ClientsInfo +message ClientsInfo { + string user_id = 1; // 用户id + string platform = 3; // "android"/"windows"/"Web" + string device_id = 4; // 设备ID + int64 login_timestamp = 5; // 上线时间戳 +} +// #endregion ClientsInfo + // Msg 相关 // 发送消息