## 获取搜索内容
~~~[api]
get:index/Index/search
*keyword=我#关键词
*navigation_id=1#导航的id
<<<
success
{
"code": 1,
"msg": "获取成功",
"count": 1,
"data": [
{
"id": 20,
"title": "我是服务机构推荐的一篇文章",
"src": "/uploads/9d/4eefd9585662dd18e9327761e32779.png",
"intro": "555",
"content": "<p>555</p>",
"source": "55",
"clicks": 5555,
"is_top": 0,
"recommend": 1,
"outside_chain": null,
"navigation_id": 5,
"classify_id": "1,3",
"status": 1,
"create_time": "2019-07-12",
"create_timestamp": "1562910817",
"update_time": "2019-07-12 13:53:37"
}
]
}
<<<
error
{
code:0
msg:"请输入关键词"
}
~~~
### 返回字段说明
| 字段 | 说明 |
| --- | --- |
| count | 文章条数 |
| data-id | 文章的ID |
| data-title | 文章标题 |
| data-src | 文章列表配图 |
| data-intro | 文章简介 |
| data-content | 文章内容 |
| data-source | 导航id |
| data-contnet | 分类id |
| data-source| 文章来源 |
| data-clicks | 点击量 |
| data-is_top | 1=置顶 0=取消置顶 |
| data-recommend | 1=推荐 0=取消推荐 |
| data-outside_chain | 外链 |
| data-navigation_id | 导航的id |
| data-classify_id | 分类的id |
| data-create_time | 文章创建时间 |