文档
测试

消息盒子

GET
api/message

请求头

参数名
类型
描述
必填
Authorization
string
Bear +token(不要忽略Bear后的空格)
必填

请求参数

参数名
类型
描述
必填
index
int
消息列表页数(默认为1)
可选

成功

参数名
类型
描述
必填
status
number
示例:0
必填
message
string
示例:OK
必填
data
object
数据字典
必填
messages
array
数据列表
必填
username
string
示例:LiuZhen
必填
avatarUrl
string
示例:http://q81okm9pv.bkt.clouddn.com/avatar/LiuZhen
必填
createTime
string
示例:2020-04-10T01:56:19.3082781
必填
tips
string
示例:用户带帅比回复了你的评论
必填
content
string
示例:别骂了别骂了!
必填
preview
string
示例:他双标一直很可以的
必填
letterType
number
示例:1
必填
contentType
number
示例:3
必填
pid
number
示例:22
必填
targetId
number
示例:11
必填
currentPage
number
示例:1
必填
size
number
示例:20
必填
pages
number
示例:1
必填

成功示例

~~~json { "status": 0, "message": "OK", "data": { "messages": [ { "username": "LiuZhen", "avatarUrl": "http://q81okm9pv.bkt.clouddn.com/avatar/LiuZhen", "createTime": "2020-04-10T01:56:19.3082781", "tips": "用户带帅比回复了你的评论", "content": "别骂了别骂了!", "preview": "他双标一直很可以的", "letterType": 1, "contentType": 3, "pid": 22, "targetId": 11 }, { "username": "LiuZhen", "avatarUrl": "http://q81okm9pv.bkt.clouddn.com/avatar/LiuZhen", "createTime": "2020-04-10T01:55:43.8764253", "tips": "用户带帅比回复了你的评论", "content": "你再骂!", "preview": "他双标一直很可以的", "letterType": 1, "contentType": 3, "pid": 22, "targetId": 22 }, { "username": "LiuZhen", "avatarUrl": "http://q81okm9pv.bkt.clouddn.com/avatar/LiuZhen", "createTime": "2020-04-10T01:49:02.2110167", "tips": "用户带帅比和你击了掌", "content": "用户带帅比和你击了掌", "preview": "川建国又发twitter啦!!!", "letterType": 1, "contentType": 1, "pid": 8, "targetId": 8 }, { "username": "LiuZhen", "avatarUrl": "http://q81okm9pv.bkt.clouddn.com/avatar/LiuZhen", "createTime": "2020-04-10T01:46:36.6412597", "tips": "用户带帅比回复了你的评论", "content": "你再骂!", "preview": "你再骂!", "letterType": 1, "contentType": 3, "pid": 22, "targetId": 22 }, { "username": "LiuZhen", "avatarUrl": "http://q81okm9pv.bkt.clouddn.com/avatar/LiuZhen", "createTime": "2020-04-10T01:44:06.4743558", "tips": "用户带帅比回复了你的评论", "content": "你再骂!", "preview": null, "letterType": 1, "contentType": 3, "pid": 22, "targetId": 22 }, { "username": "LiuZhen", "avatarUrl": "http://q81okm9pv.bkt.clouddn.com/avatar/LiuZhen", "createTime": "2020-04-10T01:39:39.4013133", "tips": "用户带帅比回复了你的评论", "content": "你再骂!", "preview": null, "letterType": 1, "contentType": 3, "pid": 22, "targetId": 22 }, { "username": "LiuZhen", "avatarUrl": "http://q81okm9pv.bkt.clouddn.com/avatar/LiuZhen", "createTime": "2020-04-10T01:37:08.9240517", "tips": "用户带帅比评论了你:", "content": "他双标一直很可以的", "preview": "川建国又发twitter啦!!!", "letterType": 1, "contentType": 2, "pid": 8, "targetId": 8 }, { "username": "LiuZhen", "avatarUrl": "http://q81okm9pv.bkt.clouddn.com/avatar/LiuZhen", "createTime": "2020-04-10T01:36:55.05881", "tips": "用户带帅比评论了你:", "content": "这是我独享的moment", "preview": "川建国又发twitter啦!!!", "letterType": 1, "contentType": 2, "pid": 8, "targetId": 8 } ], "currentPage": 1, "size": 20, "pages": 1 } }

失败

参数名
类型
描述
必填
失败情况
500 跟其他一样,小概率服务器出错
必填