46 lines
1.2 KiB
Markdown
46 lines
1.2 KiB
Markdown
# History
|
|
|
|
im auth service
|
|
|
|
- [/mcs.History/Sync](#mcshistorysync)
|
|
|
|
## /mcs.History/Sync
|
|
|
|
同步消息
|
|
|
|
|
|
### Request
|
|
```javascript
|
|
{
|
|
params: [{
|
|
ident: "", // type<string>, 唯一标识,对话唯一标识/群组唯一标识
|
|
sequence: "0", // type<int64>
|
|
msg_type: "Exception", // enum<Exception,Chat,Group,System,Event>, 消息类型
|
|
limit: 0, // type<int32>, 最大读取条数
|
|
}], // list<PullItemRequest>
|
|
}
|
|
```
|
|
|
|
### Reply
|
|
```javascript
|
|
{
|
|
total: 0, // type<int32>
|
|
exec_time_ns: "0", // type<int64>
|
|
messages: [{
|
|
time_sequence: "0", // type<int64>, 时间序列,也是创建时间
|
|
session_ident: "", // type<string>, 会话唯一标识
|
|
sender_id: "0", // type<int64>
|
|
sender_identity: "", // type<string>
|
|
target_id: "0", // type<int64>
|
|
target_identity: "", // type<string>
|
|
group_id: "0", // type<int64>
|
|
group_identity: "", // type<string>, 扩展字段,上传时无需上传
|
|
msg_type: 0, // type<int32>, 消息类型
|
|
body_type: 0, // type<int32>, 正文类型
|
|
body: "", // type<string>, 消息体
|
|
deleted_at: "0", // type<int64>, 删除时间,时间戳,毫秒
|
|
}], // list<MessageItem>
|
|
}
|
|
```
|
|
|