- 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": "文章不存在"
}
~~~