分页获取用户喜欢的作品
开发中GET
/api/user/like-works在个人中心页面,分页获取用户喜欢的作品
请求参数
Query 参数
id
string
用户id
pageSize
string
一页的个数
current
string
当前的页数
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
状态码
message
string
状态信息
data
$ref(#/definitions/91535032)[]
返回数据
#/definitions/91535032
可选
示例
{
"code": 200,
"message": "occaecat elit ut sint in",
"data": [
{
"id": "7",
"name": "及全进石总水府",
"imgList": [
"http://dummyimage.com/400x400",
"http://dummyimage.com/400x400"
],
"authorId": "44",
"authorName": "质党式需写明",
"authorAvatar": "http://dummyimage.com/100x100",
"isLiked": true
},
{
"id": "34",
"name": "值据术那",
"imgList": [
"http://dummyimage.com/400x400",
"http://dummyimage.com/400x400"
],
"authorId": "2",
"authorName": "住被况度验义",
"authorAvatar": "http://dummyimage.com/100x100",
"isLiked": false
}
]
}
修改于 5 个月前