Skip to content

Commit 94e093e

Browse files
committed
Update: /api/wss/chat-ws-go
1 parent 7c5ea95 commit 94e093e

1 file changed

Lines changed: 52 additions & 3 deletions

File tree

src/api/wss/chat-ws-go.jwzhd.com.md

Lines changed: 52 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,55 @@ message heartbeat_ack_info {
7474
}
7575
```
7676

77+
## 接收笔记同步
78+
79+
返回数据:
80+
81+
```ProtoBuf
82+
info {
83+
seq: "abcdef" // 请求标识符
84+
cmd: "draft_input" // 操作类型
85+
}
86+
87+
data {
88+
cmd: "type.googleapis.com/proto.MsgInput" // 操作类型(?)
89+
draft {
90+
chat_id: "8826687" // 聊天对象ID
91+
input: "测试草稿同步" // 草稿内容
92+
}
93+
}
94+
```
95+
96+
::: details ProtoBuf数据结构
97+
98+
```proto
99+
// 共用区
100+
// 信息
101+
message INFO {
102+
string seq = 1; // 请求标识码
103+
string cmd = 2; // 操作类型
104+
}
105+
// 共用区结束
106+
107+
// 草稿同步
108+
message draft_input {
109+
INFO info = 1;
110+
Data data = 2;
111+
112+
message Data {
113+
string cmd = 1;
114+
Draft draft = 2;
115+
116+
message Draft {
117+
string chat_id = 1; // 对象ID
118+
string input = 2; // 草稿内容
119+
}
120+
}
121+
}
122+
```
123+
124+
:::
125+
77126
## 推送消息
78127

79128
返回数据:
@@ -239,16 +288,16 @@ message INFO {
239288
string cmd = 2; // 操作类型
240289
}
241290
242-
// ws推送消息
291+
// 超级文件分享
243292
message file_send_message {
244293
INFO info = 1;
245294
Data data = 2;
246295
247296
message Data {
248297
string cmd = 1;
249-
Msg msg = 2;
298+
Sender sender = 2;
250299
251-
message file_send_message {
300+
message Sender {
252301
string send_user_id = 1; // 分享者用户ID
253302
string user_id = 2; // 接收者用户ID
254303
uint64 temp_code = 3; // 未知

0 commit comments

Comments
 (0)