分页获取用户浏览历史记录
开发中GET
/api/history/list用户在历史记录界面可以浏览自己之前看过的作品,采用无限滚动+分页获取的方式。
考虑到初期的数据量不大,目前能够分页获取到全部的记录。
请求参数
Query 参数
pageSize
string
一页的个数
示例值:
10
current
string
当前的页数
示例值:
1
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
状态码
message
string
状态信息
data
$ref(#/definitions/91538427)[]
返回数据
#/definitions/91538427
可选
示例
{
"code": 200,
"message": "culpa dolore",
"data": [
{
"id": "53",
"name": "增思对前组法位",
"imgList": [
"http://dummyimage.com/400x400",
"http://dummyimage.com/400x400",
"http://dummyimage.com/400x400"
],
"authorId": "15",
"authorName": "么由得目",
"authorAvatar": "http://dummyimage.com/100x100",
"createdAt": "1973-08-12 23:28:13"
},
{
"id": "32",
"name": "圆收命中以",
"imgList": [
"http://dummyimage.com/400x400"
],
"authorId": "13",
"authorName": "规每管为",
"authorAvatar": "http://dummyimage.com/100x100",
"createdAt": "2009-01-06 09:16:01"
}
]
}
修改于 5 个月前