根据标签分页搜索作品
开发中GET
/api/illustration/search在作品搜索页,默认按照作品标签进行搜索。
请求参数
Query 参数
labelName
string
标签名称
pageSize
string
一页的个数
current
string
当前的页数
sortType
string
可选
搜索类型,分为 new、old、like、collect 四种
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
状态码
message
string
状态信息
data
$ref(#/definitions/91535032)[]
返回数据
#/definitions/91535032
可选
示例
{
"code": 200,
"message": "ipsum cillum",
"data": [
{
"id": "45",
"name": "我太工从大",
"imgList": [
"http://dummyimage.com/400x400",
"http://dummyimage.com/400x400",
"http://dummyimage.com/400x400"
],
"authorId": "31",
"authorName": "识手体好",
"authorAvatar": "http://dummyimage.com/100x100",
"isLiked": false
},
{
"id": "23",
"name": "领口带位",
"imgList": [
"http://dummyimage.com/400x400",
"http://dummyimage.com/400x400"
],
"authorId": "66",
"authorName": "影格又且将",
"authorAvatar": "http://dummyimage.com/100x100",
"isLiked": true
},
{
"id": "22",
"name": "整从交受细员始",
"imgList": [
"http://dummyimage.com/400x400"
],
"authorId": "58",
"authorName": "外向识",
"authorAvatar": "http://dummyimage.com/100x100",
"isLiked": true
}
]
}
修改于 4 个月前