58 lines
1.1 KiB
Markdown
58 lines
1.1 KiB
Markdown
# Msg
|
|
|
|
im msg service
|
|
|
|
- [/mcs.Msg/Push](#mcsmsgpush)
|
|
- [/mcs.Msg/Ack](#mcsmsgack)
|
|
|
|
## /mcs.Msg/Push
|
|
|
|
推送消息
|
|
|
|
|
|
### Request
|
|
```javascript
|
|
{
|
|
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>, 删除时间,时间戳,毫秒
|
|
}
|
|
```
|
|
|
|
### Reply
|
|
```javascript
|
|
{
|
|
data: "", // type<string>, 数据
|
|
timeseq: "0", // type<int64>, 响应时间序列
|
|
}
|
|
```
|
|
## /mcs.Msg/Ack
|
|
|
|
消息到达确认
|
|
|
|
|
|
### Request
|
|
```javascript
|
|
{
|
|
time_sequence: ["0"], // list<int64>, 消息唯一标识
|
|
}
|
|
```
|
|
|
|
### Reply
|
|
```javascript
|
|
{
|
|
data: "", // type<string>, 数据
|
|
timeseq: "0", // type<int64>, 响应时间序列
|
|
}
|
|
```
|
|
|