分页搜索用户
开发中GET
/api/user/search在搜索页,根据关键字搜索用户
请求参数
Query 参数
keyword
string
关键字
pageSize
string
一页的个数
current
string
当前的页数
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
状态码
message
string
状态信息
data
$ref(#/definitions/91575920)[]
返回数据
#/definitions/91575920
可选
示例
{
"code": 200,
"message": "aute pariatur consequat",
"data": [
{
"id": "38",
"username": "于军",
"avatar": "http://dummyimage.com/100x100",
"intro": "consequat officia",
"works": [
{
"id": "51",
"name": "很价感往社",
"imgList": [
"http://dummyimage.com/400x400"
],
"authorId": "69",
"authorName": "些都起前集",
"authorAvatar": "http://dummyimage.com/100x100",
"isLiked": false
},
{
"id": "62",
"name": "府油领命",
"imgList": [
"http://dummyimage.com/400x400"
],
"authorId": "39",
"authorName": "查作活万",
"authorAvatar": "http://dummyimage.com/100x100",
"isLiked": true
}
],
"isFollowing": true
}
]
}
修改于 6 个月前