分页获取推荐用户列表
开发中GET
/api/user/recommend-user在探索页,分页获取推荐用户列表。
请求参数
Query 参数
pageSize
string
一页的个数
示例值:
6
current
string
当前的页数
示例值:
1
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
状态码
message
string
状态信息
data
$ref(#/definitions/91575920)[]
返回数据
#/definitions/91575920
可选
示例
{
"code": 48,
"message": "dolore Duis est",
"data": [
{
"id": "62",
"username": "锺超",
"avatar": "http://dummyimage.com/100x100",
"intro": "laborum dolore sit cillum",
"works": [
{
"id": "95",
"name": "识林众比看层今",
"imgList": [
"http://dummyimage.com/400x400",
"http://dummyimage.com/400x400"
],
"authorId": "79",
"authorName": "种合难",
"authorAvatar": "http://dummyimage.com/100x100",
"isLiked": false
},
{
"id": "24",
"name": "达标接体打",
"imgList": [
"http://dummyimage.com/400x400",
"http://dummyimage.com/400x400",
"http://dummyimage.com/400x400"
],
"authorId": "99",
"authorName": "何性例属造外",
"authorAvatar": "http://dummyimage.com/100x100",
"isLiked": true
},
{
"id": "41",
"name": "千党很较种拉转",
"imgList": [
"http://dummyimage.com/400x400"
],
"authorId": "74",
"authorName": "调结适深",
"authorAvatar": "http://dummyimage.com/100x100",
"isLiked": false
}
],
"isFollowing": true
},
{
"id": "74",
"username": "秦芳",
"avatar": "http://dummyimage.com/100x100",
"intro": "commodo laboris",
"works": [
{
"id": "27",
"name": "当构史府",
"imgList": [
"http://dummyimage.com/400x400",
"http://dummyimage.com/400x400",
"http://dummyimage.com/400x400"
],
"authorId": "28",
"authorName": "传经百毛你之",
"authorAvatar": "http://dummyimage.com/100x100",
"isLiked": false
},
{
"id": "48",
"name": "更矿什等观须",
"imgList": [
"http://dummyimage.com/400x400"
],
"authorId": "1",
"authorName": "便研节有",
"authorAvatar": "http://dummyimage.com/100x100",
"isLiked": true
}
],
"isFollowing": true
},
{
"id": "29",
"username": "乔杰",
"avatar": "http://dummyimage.com/100x100",
"intro": "veniam",
"works": [
{
"id": "27",
"name": "资上九快产",
"imgList": [
"http://dummyimage.com/400x400"
],
"authorId": "82",
"authorName": "明社意而",
"authorAvatar": "http://dummyimage.com/100x100",
"isLiked": true
},
{
"id": "65",
"name": "两容式",
"imgList": [
"http://dummyimage.com/400x400",
"http://dummyimage.com/400x400"
],
"authorId": "52",
"authorName": "活器府据",
"authorAvatar": "http://dummyimage.com/100x100",
"isLiked": true
},
{
"id": "53",
"name": "物置热更主大达",
"imgList": [
"http://dummyimage.com/400x400"
],
"authorId": "82",
"authorName": "求真本据斯族",
"authorAvatar": "http://dummyimage.com/100x100",
"isLiked": true
}
],
"isFollowing": false
}
]
}
修改于 4 个月前