多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
#### 列表 ~~~[api] get:/index/article/index *number:cateId#分类ID number:p=1#当前页数 number:ps=10#分页大小 <<< success { "code": 1, "msg": "", "time": "2018-11-10 21:15:39", "data": [ { "id": 1, "cate_id": 4, "created_id": 1, "updated_id": 1, "auditd_id": 1, "identity": 1, "title": "订单说明", "thumb": "http://oss.dgyouduo.com/static/img/no-image.png", "banner": "a:1:{i:0;s:53:\"http://oss.dgyouduo.com/static/img/no-image-16x10.png\";}", "summary": "订单列表说明", "author": "优行到家", "source_name": "优行到家", "source_url": "优行到家", "view_count": 0, "sort": 0, "is_audit": 1, "is_trash": 0, "status": 1, "created_at": "2016-01-01 00:00:00", "updated_at": "2018-11-09 16:16:09", "auditd_at": "2018-09-20 18:41:35", "category": { "id": 4, "parent_id": 0, "parent_id_path": "0_4", "level": 1, "identity": 1, "name": "新手指南", "thumb": "http://dgyouduo.oss-cn-shenzhen.aliyuncs.com/uploads/2018/11/wSzx0hMXtbCL7FwbZKVG8lFjBeTQyMbV.png", "sort": 1, "status": 1, "created_at": "2018-11-10 01:17:20", "updated_at": "2018-11-10 01:17:20", "status_text": "正常" }, "is_audit_text": "审核通过", "status_text": "正常" } ], "_meta": { "totalCount": 1, "pageCount": 1, "currentPage": 1, "perPage": 10 } } ~~~ #### 详情 ~~~[api] get:/index/article/retrieve/id/:id <<< success { "code": 1, "msg": "", "time": "2018-11-10 21:40:07", "data": { "id": 1, "cate_id": 4, "created_id": 1, "updated_id": 1, "auditd_id": 1, "identity": 1, "title": "订单说明", "thumb": "http://oss.dgyouduo.com/static/img/no-image.png", "banner": "a:1:{i:0;s:53:\"http://oss.dgyouduo.com/static/img/no-image-16x10.png\";}", "summary": "订单列表说明", "content": "<p>文章列表</p>", "author": "优行到家", "source_name": "优行到家", "source_url": "优行到家", "view_count": 0, "sort": 0, "is_audit": 1, "status": 1, "created_at": "2016-01-01 00:00:00", "updated_at": "2018-11-09 16:16:09", "auditd_at": "2018-09-20 18:41:35", "category": { "id": 4, "parent_id": 0, "parent_id_path": "0_4", "level": 1, "identity": 1, "name": "新手指南", "thumb": "http://dgyouduo.oss-cn-shenzhen.aliyuncs.com/uploads/2018/11/wSzx0hMXtbCL7FwbZKVG8lFjBeTQyMbV.png", "sort": 1, "status": 1, "created_at": "2018-11-10 01:17:20", "updated_at": "2018-11-10 01:17:20", "status_text": "正常" }, "is_audit_text": "审核通过", "status_text": "正常" } } ~~~ #### 分类 ~~~[api] get:/index/article/category number:parentId=0#父ID number:p=1#当前页数 number:ps=10#分页大小 <<< success { "code": 1, "msg": "", "time": "2018-11-10 21:11:24", "data": [ { "id": 4, "parent_id": 0, "parent_id_path": "0_4", "level": 1, "identity": 1, "name": "新手指南", "thumb": "http://dgyouduo.oss-cn-shenzhen.aliyuncs.com/uploads/2018/11/wSzx0hMXtbCL7FwbZKVG8lFjBeTQyMbV.png", "sort": 1, "status": 1, "created_at": "2018-11-10 01:17:20", "updated_at": "2018-11-10 01:17:20", "status_text": "正常" } ], "_meta": { "totalCount": 1, "pageCount": 1, "currentPage": 1, "perPage": 10 } } ~~~ #### 增加浏览数 ~~~[api] post:/index/article/addViewCount/id/:id <<< success { "code": 1, "msg": "success", "time": "2018-01-18 22:27:56", "data": [] } ~~~