获取聊天窗口(getChat)
GET
http://localhost:520/api/chat?type=all
请求参数
参数名
类型
描述
必填
type
string
示例:all
必填
响应参数
参数名
类型
描述
必填
code
int
示例:0
必填
msg
string
示例:sucess
必填
page
int
示例:1
必填
pageSize
int
示例:10
必填
total
int
示例:2
必填
id
int
示例:1
必填
afterMessage
object
示例:null 最后一次发送的消息
必填
fromId
int
示例:1 主动建立窗口用户id
必填
toId
int
示例:3 被动建立窗口用户id
必填
created_at
string
示例:2020-11-20T12:01:51.000Z 最有一次消息接收或发送的时间
必填
id
int
示例:1
必填
message
string
示例:1111 消息内容
必填
status
boolean
示例:true 消息状态
必填
fromId
int
示例:1 消息发送者用户id
必填
toId
int
示例:3 消息接收者用户id
必填
belong
int
示例:1 消息所属
必填
cId
int
示例:1 聊天窗id
必填
created_at
string
示例:2020-11-20T19:20:12.000Z 发送时间
必填