Skip to content

Commit 0427a2b

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

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

src/api/v1/msg.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ msg {
176176
}
177177
direction: "left" // 在聊天中的位置(左边/右边)
178178
msg_type: 1 // 消息类型
179-
msg_content {
179+
content {
180180
text: "ok" // 消息内容
181181
// 剩下的建议看ProtoBuf序列文件,太多不写了
182182
}
@@ -213,7 +213,7 @@ message list_message_by_seq {
213213
Sender sender = 2;
214214
string direction = 3; // 消息位置,左边/右边
215215
uint64 msg_type = 4;
216-
Msg_content msg_content = 5;
216+
Content content = 5;
217217
uint64 send_time = 6; // 时间戳(毫秒)
218218
Cmd cmd = 7; // 指令
219219
uint64 msg_delete_time = 8; // 消息撤回时间
@@ -226,7 +226,7 @@ message list_message_by_seq {
226226
uint64 type = 4; // 指令类型
227227
}
228228
// 消息
229-
message Msg_content {
229+
message Content {
230230
string text = 1; // 消息内容
231231
string buttons = 2; // 按钮
232232
string image_url = 3; // 图像URL
@@ -329,7 +329,7 @@ msg {
329329
}
330330
direction: "left" // 在聊天中的位置(左边/右边)
331331
msg_type: 1 // 消息类型
332-
msg_content {
332+
content {
333333
text: "ok" // 消息内容
334334
// 剩下的建议看ProtoBuf序列文件,太多不写了
335335
}
@@ -361,7 +361,7 @@ message Msg {
361361
Sender sender = 2;
362362
string direction = 3; // 消息位置,左边/右边
363363
uint64 msg_type = 4;
364-
Msg_content msg_content = 5;
364+
Content content = 5;
365365
uint64 send_time = 6; // 时间戳(毫秒)
366366
Cmd cmd = 7; // 指令
367367
uint64 msg_delete_time = 8; // 消息撤回时间
@@ -374,7 +374,7 @@ message Msg {
374374
uint64 type = 4; // 指令类型
375375
}
376376
// 消息
377-
message Msg_content {
377+
message Content {
378378
string text = 1; // 消息内容
379379
string buttons = 2; // 按钮
380380
string image_url = 3;
@@ -491,7 +491,7 @@ msg {
491491
}
492492
direction: "left" // 在聊天中的位置(左边/右边)
493493
msg_type: 1 // 消息类型
494-
msg_content {
494+
content {
495495
text: "ok" // 消息内容
496496
// 剩下的建议看ProtoBuf序列文件,太多不写了
497497
}
@@ -524,7 +524,7 @@ message Msg {
524524
Sender sender = 2;
525525
string direction = 3; // 消息位置,左边/右边
526526
uint64 msg_type = 4;
527-
Msg_content msg_content = 5;
527+
Content content = 5;
528528
uint64 send_time = 6; // 时间戳(毫秒)
529529
Cmd cmd = 7; // 指令
530530
uint64 msg_delete_time = 8; // 消息撤回时间
@@ -537,7 +537,7 @@ message Msg {
537537
uint64 type = 4; // 指令类型
538538
}
539539
// 消息
540-
message Msg_content {
540+
message Content {
541541
string text = 1; // 消息内容
542542
string buttons = 2; // 按钮
543543
string image_url = 3;

0 commit comments

Comments
 (0)