Skip to content

Commit f8bcffe

Browse files
committed
fix: 修正变量命名
1 parent 0427a2b commit f8bcffe

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

src/api/v1/msg.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ data {
3333
temp_text3: ""
3434
temp_code1: 0
3535
}
36-
msg_type: 1
36+
content_type: 1
3737
temp_code: 0
3838
quote_msg_id: "引用信息ID"
3939
temp_text: ""
@@ -71,7 +71,7 @@ message send_message_send {
7171
uint64 sticker_pack_id = 26; // 表情包ID
7272
string room_name = 29; // 语音房间发送显示信息的文本
7373
}
74-
uint64 msg_type = 6; // 信息类别,1-文本,2-图片,3-markdown,4-文件,5-表单,6-文章,7-表情,8-html,11-语音,13-语音通话
74+
uint64 content_type = 6; // 信息类别,1-文本,2-图片,3-markdown,4-文件,5-表单,6-文章,7-表情,8-html,11-语音,13-语音通话
7575
uint64 command_id = 7; // 所使用命令ID
7676
string quote_msg_id = 8; // 引用信息ID
7777
Media media = 9;
@@ -175,7 +175,7 @@ msg {
175175
// ...
176176
}
177177
direction: "left" // 在聊天中的位置(左边/右边)
178-
msg_type: 1 // 消息类型
178+
content_type: 1 // 消息类型
179179
content {
180180
text: "ok" // 消息内容
181181
// 剩下的建议看ProtoBuf序列文件,太多不写了
@@ -212,7 +212,7 @@ message list_message_by_seq {
212212
string msg_id = 1; // 消息ID
213213
Sender sender = 2;
214214
string direction = 3; // 消息位置,左边/右边
215-
uint64 msg_type = 4;
215+
uint64 content_type = 4;
216216
Content content = 5;
217217
uint64 send_time = 6; // 时间戳(毫秒)
218218
Cmd cmd = 7; // 指令
@@ -328,7 +328,7 @@ msg {
328328
// ...
329329
}
330330
direction: "left" // 在聊天中的位置(左边/右边)
331-
msg_type: 1 // 消息类型
331+
content_type: 1 // 消息类型
332332
content {
333333
text: "ok" // 消息内容
334334
// 剩下的建议看ProtoBuf序列文件,太多不写了
@@ -360,7 +360,7 @@ message Msg {
360360
string msg_id = 1; // 消息ID
361361
Sender sender = 2;
362362
string direction = 3; // 消息位置,左边/右边
363-
uint64 msg_type = 4;
363+
uint64 content_type = 4;
364364
Content content = 5;
365365
uint64 send_time = 6; // 时间戳(毫秒)
366366
Cmd cmd = 7; // 指令
@@ -490,7 +490,7 @@ msg {
490490
// ...
491491
}
492492
direction: "left" // 在聊天中的位置(左边/右边)
493-
msg_type: 1 // 消息类型
493+
content_type: 1 // 消息类型
494494
content {
495495
text: "ok" // 消息内容
496496
// 剩下的建议看ProtoBuf序列文件,太多不写了
@@ -523,7 +523,7 @@ message Msg {
523523
string msg_id = 1; // 消息ID
524524
Sender sender = 2;
525525
string direction = 3; // 消息位置,左边/右边
526-
uint64 msg_type = 4;
526+
uint64 content_type = 4;
527527
Content content = 5;
528528
uint64 send_time = 6; // 时间戳(毫秒)
529529
Cmd cmd = 7; // 指令

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ data {
109109
text: "Feng的大手发力了" // 消息文字
110110
// 剩下的建议参考proto,太多不写了
111111
}
112-
msg_type: 1 // 消息类型
112+
content_type: 1 // 消息类型
113113
timestamp: 123456789 // 时间戳(毫秒)
114114
cmd {
115115
id; 999 // 指令ID
@@ -154,7 +154,7 @@ message push_message {
154154
string chat_id = 4; // 会话的ID
155155
uint64 chat_type = 5; // 会话类型
156156
Content content = 6; // 消息内容
157-
uint64 msg_type = 7;
157+
uint64 content_type = 7;
158158
uint64 timestamp = 8; // 时间戳(毫秒)
159159
Cmd cmd = 9; // 指令
160160
uint64 delete_timestamp = 10; // 撤回消息时间,和8差别不大

0 commit comments

Comments
 (0)