文档
测试

catlist

POST
http://www.domain.com/index.php/Api/catlist

接口描述

栏目列表

请求参数

参数名
类型
描述
必填
cid
number
后台栏目ID 或者 $cid-当前栏目id
必填
type
string
son-下级栏目 self-同级栏目 top-顶级栏目
必填
limit
number
必填
flag
number
0-不显示外部链接和单页 1-全部
必填

响应参数

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

说明 / 示例

# 请求示例 `http://www.domain.com/index.php/api/catlist?cid=21&limit=2` # 响应示例 ```language { "state": 200, "info": "请求成功", "data": [ { "id": 22, "title": "建筑装饰五金", "etitle": "jianzhuzhuangshiwujin", "subtitle": "", "pid": 21, "mid": 34, "pic": "", "seo_title": "", "seo_keywords": "", "seo_desc": "", "jumpurl": "", "tpl_cover": "", "tpl_list": "list_product.html", "tpl_show": "show_product.html", "sort": 1, "status": 1, "target": 0, "nav": 0, "desc": "<p>建筑五金建筑物或构筑物中装用的金属和非金属制品、配件的总称。一般具有实用和装饰双重效果。<\/p>", "content": "", "cover": 0, "isarea": 1, "url": "http:\/\/www.yunucms.cn\/jianzhuzhuangshiwujin\/", "child": [ { "id": 35, "title": "建筑五金", "etitle": "jianzhuwujin", "subtitle": "", "pid": 22, "mid": 34, "pic": "", "seo_title": "", "seo_keywords": "", "seo_desc": "", "jumpurl": "", "tpl_cover": "", "tpl_list": "list_product.html", "tpl_show": "show_product.html", "sort": 0, "status": 1, "target": 0, "nav": 0, "desc": "<p>建筑五金建筑物或构筑物中装用的金属和非金属制品、配件的总称。一般具有实用和装饰双重效果。<\/p>", "content": "", "cover": 0, "isarea": 1, "url": "http:\/\/www.yunucms.cn\/jianzhuwujin\/", "child": [] }, { "id": 36, "title": "装饰五金", "etitle": "zhuangshiwujin", "subtitle": "", "pid": 22, "mid": 34, "pic": "", "seo_title": "", "seo_keywords": "", "seo_desc": "", "jumpurl": "", "tpl_cover": "", "tpl_list": "list_product.html", "tpl_show": "show_product.html", "sort": 0, "status": 1, "target": 0, "nav": 0, "desc": "", "content": "", "cover": 0, "isarea": 1, "url": "http:\/\/www.yunucms.cn\/zhuangshiwujin\/", "child": [] }] }, { "id": 23, "title": "机械五金件", "etitle": "jixiewujinjian", "subtitle": "", "pid": 21, "mid": 34, "pic": "", "seo_title": "", "seo_keywords": "", "seo_desc": "", "jumpurl": "", "tpl_cover": "", "tpl_list": "list_product.html", "tpl_show": "show_product.html", "sort": 2, "status": 1, "target": 0, "nav": 0, "desc": "<p>五金:传统的五金制品,也称“小五金”。指金、银、铜、铁、锡五种金属。经人工加工可以制成刀、剑等艺术品或金属器件。现代社会的五金更为广泛,例如五金工具、五金零部件、日用五金、建筑五金以及安防用品等。小五金产品大都不是最终消费品。<\/p>", "content": "", "cover": 0, "isarea": 1, "url": "http:\/\/www.yunucms.cn\/jixiewujinjian\/", "child": [ { "id": 38, "title": "机械五金", "etitle": "jixie", "subtitle": "", "pid": 23, "mid": 34, "pic": "", "seo_title": "", "seo_keywords": "", "seo_desc": "", "jumpurl": "", "tpl_cover": "", "tpl_list": "list_product.html", "tpl_show": "show_product.html", "sort": 0, "status": 1, "target": 0, "nav": 0, "desc": "", "content": "", "cover": 0, "isarea": 1, "url": "http:\/\/www.yunucms.cn\/jixie\/", "child": [] }] }] } ```