## 获取首页文章
~~~[api]
get:index/Index/article
*classify_id=[13]#分类的id(以数组的形式传输)点击后传送
<<<
success
{
"code": 1,
"msg": "获取成功",
"information": [
{
"id": 5,
"name": "政策信息",
"article": [
{
"id": 1,
"title": "并发量大、数据量大的互联网业务数据库设计军规",
"src": "/uploads/71/79b9569fba68661304152ae492f6fa.png",
"intro": null,
"content": "我是文章内容",
"source": "Csdn",
"clicks": 999,
"is_top": 0,
"recommend": 0,
"outside_chain": "https://blog.csdn.net/u012562943/article/details/93735268",
"navigation_id": 5,
"classify_id": "1,3",
"create_time": "2019-06-27"
}
]
}
],
"database": [
{
"id": 2,
"name": "数据库",
"article": []
}
],
"organization": [
{
"id": 3,
"name": "服务机构",
"article": []
}
],
"tuiOrganization": [
{
"id": 3,
"name": "服务机构",
"article": []
}
],
"expert": [
{
"id": 4,
"name": "专家库",
"article": []
}
],
"tuiExpert": [
{
"id": 4,
"name": "专家库",
"article": []
}
],
"statistics": [
{
"id": 7,
"name": "数据统计",
"type": [
{
"id": 6,
"name": "数据统计分类",
"navigation_id": 7,
"classify": [
{
"id": 13,
"name": "分类一",
"type_id": 6
},
{
"id": 14,
"name": "分类二",
"type_id": 6
}
]
}
],
"article": [
{
"id": 3,
"title": "11111111111",
"src": "/uploads/9d/4eefd9585662dd18e9327761e32779.png",
"intro": "test",
"content": "<p>999999999999999999999999999</p>",
"source": "福建厦门",
"clicks": 100,
"is_top": 0,
"recommend": 0,
"outside_chain": "https://weibo.com",
"navigation_id": 7,
"classify_id": "13",
"create_time": "2019-07-11"
}
]
}
]
}
~~~
### 返回字段说明
| 字段 | 说明 |
| --- | --- |
| information | 政策信息 |
| database | 数据库 |
| organization | 服务机构 |
| tuiOrganization | 推荐的服务机构 |
| expert | 专家库 |
| tuiExpert | 推荐的专家库 |
| statistics | 数据统计 |
| id | 导航的id |
| name | 导航的名字 |
| type | 导航下的分类 |
| type-id | 导航下分类的id |
| type-name |导航下分类的名字 |
| type-navigation_id | 导航id |
| classify | 导航下分类的子分类 |
| classify-id | 导航下分类的子分类id |
| classify-name | 导航下分类的子分类名字 |
| classify-pid | 导航下分类的子分类父级id |
| classify-status | 导航下分类的子分类状态 |
| classify-type_id | 导航下分类的id |
| article-id | 文章的ID |
| article-title | 文章标题 |
| article-src | 文章列表配图 |
| article-intro | 文章简介 |
| article-content | 文章内容 |
| article-source | 导航id |
| article-contnet | 分类id |
| article-source| 文章来源 |
| article-clicks | 点击量 |
| article-is_top | 1=置顶 0=取消置顶 |
| article-recommend | 1=推荐 0=取消推荐 |
| article-outside_chain | 外链 |
| article-navigation_id | 导航的id |
| article-classify_id | 分类的id |
| article-create_time | 文章创建时间 |