Skip to content

Commit c497472

Browse files
committed
Update: 修改proto变量命名,添加表单消息
1 parent 0b4ad96 commit c497472

3 files changed

Lines changed: 13 additions & 11 deletions

File tree

src/api/v1/conversation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ data {
6262
mentioned_in: "8826666" // @消息所属的对话ID,例如群ID
6363
mentioner_id: "8827777" // 发起@的对象的ID
6464
mentioner_name: "测试" // 发起@的对象的名称
65-
msg_order: 1234 // 消息序列
65+
msg_seq: 1234 // 消息序列
6666
}
6767
certification_level: 1 // 认证相关,1是官方,2是地区
6868
}
@@ -103,7 +103,7 @@ message list {
103103
string mentioned_in = 4; // @消息所属的对话ID(例如群ID),感觉还没啥用
104104
string mentioner_id = 6; // 发起@的对象ID
105105
string mentioner_name = 7; // 发起@对象的名称
106-
uint64 msg_order = 8; // 发起@的消息序列
106+
uint64 msg_seq = 8; // 发起@的消息序列
107107
}
108108
}
109109
}

src/api/v1/disk.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ POST /v1/disk/file-list
6767
"uploadTime": 1754534188, // 更新时间
6868
"uploadBy": "114514", // 上传者id
6969
"uploadByName": "上传者名称",
70-
"qiniuKey": "" // 千牛云密钥
70+
"qiniuKey": "" // 七牛云密钥
7171
}
7272
// ...
7373
]
@@ -95,7 +95,7 @@ POST /v1/disk/upload-file
9595
"fileName": "1114514.png", // 文件名
9696
"fileMd5": "6b14eab6a86c93c802de85e09561cb5c.png", // 文件的md5+文件拓展名(你的文件上传到云端文件名就是“文件的md5.文件拓展名”)
9797
"fileEtag": "FqhRXAMU8qSP_omDntW7D6BUk50q", // Etag
98-
"qiniuKey": "disk/6b14eab6a86c93c802de85e09561cb5c.png", // 千牛云key(目测在千牛云文件的路径
98+
"qiniuKey": "disk/6b14eab6a86c93c802de85e09561cb5c.png", // 七牛云key(目测在七牛云文件的路径
9999
"folderId": 0 // 文件夹id(在根目录就是0)
100100
}
101101
```

src/api/v1/msg.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ data {
2727
image_key: "欲发送图片key"
2828
msg_text1: "信息文本"
2929
msg_text2: "信息文本"
30-
temp_text1: ""
30+
form: "" // 表单消息
3131
temp_text2: ""
3232
temp_text3: ""
3333
temp_code1: 0
@@ -51,7 +51,7 @@ message send_message_send {
5151
string file_name = 4; // 欲发送文件名称
5252
string file_key = 5; // 欲发送文件key
5353
repeated string mentioned_id = 6; // @用户ID,可重复多个本属性
54-
string temp_text1 = 7; // 未知
54+
string form = 7; // 表单消息
5555
string quote_msg_text = 8; // 引用信息文本
5656
string image = 9; // 欲发送图片key/url(expression/abcdef.jpg)
5757
string msg_text1 = 11; // 信息文本
@@ -176,7 +176,7 @@ msg {
176176
}
177177
msg_delete_time: 8888 // 消息撤回时间(毫秒时间戳)
178178
quote_msg_id: "abcdef" // 引用消息的ID
179-
msg_order: 6666 // 消息序列
179+
msg_seq: 6666 // 消息序列
180180
edit_time: 1234 // 最后编辑时间
181181
}
182182
// ...
@@ -205,7 +205,7 @@ message list_message_by_seq {
205205
Cmd cmd = 7; // 指令
206206
uint64 msg_delete_time = 8; // 消息撤回时间
207207
string quote_msg_id = 9; // 引用消息ID
208-
uint64 msg_order = 10;
208+
uint64 msg_seq = 10;
209209
uint64 edit_time = 12; // 最后编辑时间
210210
211211
message Cmd {
@@ -219,6 +219,7 @@ message list_message_by_seq {
219219
string image_url = 3; // 图像URL
220220
string file_name = 4; // 文件名
221221
string file_url = 5; // 文件URL
222+
string form = 7; // 表单消息
222223
string quote_msg_text = 8; // 引用消息文字
223224
string sticker_url = 9; // 表情URL
224225
string post_id = 10; // 文章ID
@@ -272,7 +273,7 @@ msg_id: "abcdef" // 从指定消息id开始,可不写
272273
chat_type: 2 // 对象类型,1-用户 2-群聊 3-机器人
273274
chat_id: "big" // 对象ID
274275
```
275-
::: ProtoBuf数据结构
276+
::: details ProtoBuf数据结构
276277
```proto
277278
message list_message_send {
278279
uint64 msg_count = 2; // 获取消息数
@@ -320,7 +321,7 @@ msg {
320321
}
321322
msg_delete_time: 8888 // 消息撤回时间(毫秒时间戳)
322323
quote_msg_id: "abcdef" // 引用消息的ID
323-
msg_order: 6666 // 消息序列
324+
msg_seq: 6666 // 消息序列
324325
edit_time: 1234 // 最后编辑时间
325326
}
326327
// ...
@@ -345,7 +346,7 @@ message Msg {
345346
Cmd cmd = 7; // 指令
346347
uint64 msg_delete_time = 8; // 消息撤回时间
347348
string quote_msg_id = 9; // 引用消息ID
348-
uint64 msg_order = 10;
349+
uint64 msg_seq = 10;
349350
uint64 edit_time = 12; // 最后编辑时间
350351
351352
message Cmd {
@@ -359,6 +360,7 @@ message Msg {
359360
string image_url = 3;
360361
string file_name = 4;
361362
string file_url = 5;
363+
string form = 7; // 表单消息
362364
string quote_msg_text = 8; // 引用消息文字
363365
string sticker_url = 9; // 表情URL
364366
string post_id = 10; // 文章ID

0 commit comments

Comments
 (0)