## 获取列表文章
~~~[api]
get:index/Index/articleList
*navigation_id=5#导航的id
*classify_id=[1]#分类的id(以数组的形式传输)点击后传送
*sort=asc#文章排序(asc是指定列按升序排列,desc则是指定列按降序排列)
<<<
success
{
"code": 1,
"msg": "获取成功",
"typeList": [
{
"id": 1,
"name": "年份",
"navigation_id": 5,
"classify": [
{
"id": 1,
"name": "2019年",
"pid": 0,
"status": 1,
"type_id": 1
},
{
"id": 2,
"name": "2018年",
"pid": 0,
"status": 1,
"type_id": 1
},
{
"id": 5,
"name": "2017年",
"pid": 0,
"status": 1,
"type_id": 1
}
]
},
{
"id": 2,
"name": "学历",
"navigation_id": 5,
"classify": [
{
"id": 3,
"name": "分类一",
"pid": 0,
"status": 1,
"type_id": 2
},
{
"id": 4,
"name": "分类二",
"pid": 0,
"status": 1,
"type_id": 2
}
]
}
],
"articleList": {
"total": 2,
"per_page": 15,
"current_page": 1,
"last_page": 1,
"data": [
{
"id": 1,
"title": "并发量大、数据量大的互联网业务数据库设计军规",
"src": "/uploads/71/79b9569fba68661304152ae492f6fa.png",
"intro": null,
"content": "我是文章的内容",
"source": "Csdn",
"clicks": 999,
"is_top": 0,
"outside_chain": "https://blog.csdn.net/u012562943/article/details/93735268",
"navigation_id": 5,
"classify_id": "1,3",
"create_time": "2019-06-27 09:55:37",
}
]
}
}
<<<
error
{
code:0
msg:"获取失败"
}
~~~
### 返回字段说明
| 字段 | 说明 |
| --- | --- |
| id | 导航下分类的id |
| name |导航下分类的名字 |
| navigation_id | 导航id |
| classify | 导航下分类的子分类 |
| classify-id | 导航下分类的子分类id |
| classify-name | 导航下分类的子分类名字 |
| classify-pid | 导航下分类的子分类父级id |
| classify-status | 导航下分类的子分类状态 |
| classify-type_id | 导航下分类的id |
| total | 文章列表总条数 |
| per_page | 文章列表的每页条数 |
| current_page | 文章列表当前页 |
| last_page | 文章列表最后一页 |
| 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 | 文章创建时间 |