文档
测试

聊天详情(包含记录)

GET
/api/chat/lists

请求头

参数名
类型
描述
必填
Content-Type
string
application/json
必填
token
string
必填

请求参数

参数名
类型
描述
必填
pagesize
int
10
必填
send_id
int
对方id
必填
msg_id
int
消息列表中第一条消息数据的id 不传时默认取最后一页
必填

响应参数

参数名
类型
描述
必填
code
int
示例:1
必填
msg
string
示例:成功
必填
time
string
示例:1599634242
必填
data
object
数据字典
必填
do_sub
int
是否已关注对方 示例:1=是 0否
必填
total
int
示例:1
必填
rows
array
数据列表
必填
id
int
示例:1 消息id
必填
content
string
示例:哈哈这是后台加的测试数据,莫慌
必填
type
int
示例:1 类型:0=文本,1=礼物,2=时间线
必填
time
int
示例:1599112815
必填
form
string
示例:me=我发的和other=别人发的
必填
is_timeline
int
是否包含时间线 1是 0否
必填