查询文章
开发中GET
/article/search-article在首页搜索框,输入关键词进行文章的搜索。
请求参数
Query 参数
keyword
string
搜索关键词
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
result_code
enum<integer>
状态码
0-成功,1-失败
枚举值:
01
result_msg
string
状态信息
result
array [object]
返回结果
查询好的文章列表
示例
{
"result_code": 0,
"result_msg": "esse dolore",
"result": [
{
"article_id": 60,
"article_title": "断由除在",
"article_status": 2,
"article_major": [
"culpa dolore",
"consectetur occaecat Excepteur sed sint",
"anim veniam in",
"pariatur officia occaecat est do",
"deserunt cupidatat"
],
"article_labels": [
"sit irure ullamco officia reprehenderit",
"in labore",
"sint sed",
"Lorem enim tempor"
],
"article_introduce": "ullamco Duis eiusmod anim",
"author_id": 66,
"like_num": 67,
"collection_num": 80,
"comment_num": 41,
"share_num": 27,
"view_num": 32,
"article_uploaddate": "2005-08-24",
"article_updatedate": "2013-09-03",
"article_md": "dolore",
"author_name": "列在感响建想去",
"author_major": "in pariatur",
"author_university": "dolor cillum occaecat ex",
"author_headphoto": "http://dummyimage.com/400x400",
"author_signature": "id",
"author_article_num": 67,
"article_link": "eu"
}
]
}
最后修改时间: 1 年前