文档
测试
POST
http://www.domain.com/index.php/Api/list

接口描述

列表内容

请求参数

参数名
类型
描述
必填
cid
number
栏目id
可选
titlelen
number
0-不截取
必填
orderby
string
asc-正序 desc-倒序
必填
keyword
string
模糊查询title(标题)字段
必填
limit
number
不传此参数默认调取所有数据
必填
pages
number
配合limit使用,获取对应分页数的数据
必填
flag
number
1-推荐 0-全部
必填
top
number
0-非头条 1-一级头条 ..... 9-九级头条
必填

响应参数

参数名
类型
描述
必填
state
number
状态码
必填
info
string
描述
必填
data
array
结果集
必填

说明 / 示例

# 请求示例 `http://www.domain.cn/index.php/api/list?cid=35&limit=2&pages=2` # 响应示例 ```language { "state": 200, "info": "请求成功", "data": [ { "id": 47, "cid": 35, "mid": 34, "title": "22-FHE-SB", "jumpurl": "", "etitle": "", "click": 13, "vid": 10, "sort": 0, "istop": 1, "create_time": 1508129404, "update_time": 1508129425, "aid": 1, "seo_title": "", "seo_keywords": "", "seo_desc": "", "area": "", "top": 0, "pic": "\/\/www.yunucms.cn\/uploads\/image\/20171016\/7f0f09c6dc95a402dd0272041c3f81ec.jpg", "tag": "", "url": "http:\/\/www.yunucms.cn\/jianzhuwujin\/47.html" }, { "id": 46, "cid": 35, "mid": 34, "title": "FHB200-BG", "jumpurl": "", "etitle": "", "click": 53, "vid": 9, "sort": 0, "istop": 1, "create_time": 1508129374, "update_time": 1508129402, "aid": 1, "seo_title": "", "seo_keywords": "", "seo_desc": "", "area": "", "top": 0, "pic": "\/\/www.yunucms.cn\/uploads\/image\/20171016\/77e467ecd89008cdb7045fc638cc8e1d.jpg", "tag": "", "url": "http:\/\/www.yunucms.cn\/jianzhuwujin\/46.html" }] } ```