获取消息
GET
http://localhost:520/api/chat?type=all&page=1&pageSize=10
请求参数
参数名
类型
描述
必填
type
string
示例:all or unread
必填
page
int
示例:1
必填
pageSize
int
示例:10
必填
响应参数
参数名
类型
描述
必填
code
int
示例:0
必填
msg
string
示例:success
必填
page
int
示例:1
必填
pageSize
int
示例:10
必填
total
int
示例:2
必填
id
int
示例:1
必填
afterMessage
object
示例:null
必填
fromId
int
示例:1
必填
toId
int
示例:3
必填
created_at
string
示例:2020-11-20T12:01:51.000Z
必填
id
int
示例:1
必填
message
string
示例:1111
必填
status
boolean
示例:true
必填
fromId
int
示例:1
必填
toId
int
示例:3
必填
belong
int
示例:1
必填
cId
int
示例:1
必填
created_at
string
示例:2020-11-20T19:20:12.000Z
必填