- 4.通过关键字搜索文章
~~~[api]
get:/article/get/search
*string:keyword=计算机#关键字
*int:page=1#当前页码
*int:count=2#数量
<<<
success
{
"status": true,
"resdata": [
{
"id": 1,
"cover": null,
"title": "天商计科专业简介",
"content": "文章内容",
"time": "2018-02-25 17:53:04",
"tagid": "[\"001\"]",
"typeid": 3
},
{
"id": 2,
"cover": null,
"title": "天商软工专业简介",
"content": "文章内容",
"time": "2018-02-25 17:26:06",
"tagid": "[\"002\"]",
"typeid": 3
}
],
"total": 2
}
<<<
error
{
"status": false,
"title": "文章不存在"
}
~~~