🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
~~~[api] post:/api/cms/channellist <<< success 此处仅显示接口实际测试结果,具体返回值说明请对照下方代码示例 <<< error 此处仅显示接口实际测试结果,具体返回值说明请对照下方代码示例 ~~~ ~~~ { "code": 1, //请求成功 "msg": "", //成功信息 "time": "1571729284", "data": { //实际数据 "total": 7, //数据条数 "rows": [ { "id": 15, //分类id /** * 分类类型: * channel:“栏目类型”下不可以发布文章,但可以添加子栏目、列表、链接栏目类型 * list:“列表类型”下可以发布文章,但不能添加子栏目 * link:链接类型下不可以发布文章和子级栏目 */ "type": "list", "model_id": 4, //模型id "parent_id": 0, //父类型id,可用于判断是否存在父级 "name": " 海洋渔业", //栏目名称 "image": "", //栏目缩略图 "flag": "", //栏目类型 "keywords": "", //栏目关键词 "description": "", //栏目描述 "diyname": "haiyangyuye", "outlink": "", "items": 2, "weigh": 7, //展示权重 "theme": "default", "channeltpl": "channel_news.html", "listtpl": "list_news.html", "showtpl": "show_news.html", "pagesize": 10, //栏目下文章每页展示数量 "iscontribute": 0, "isnav": 1, "createtime": 1571295461, "updatetime": 1571295467, "status": "normal", //栏目状态 "type_text": "List", "status_text": "正常", "url": "/cms/c/haiyangyuye.html", "spacer": "", "haschild": 0, "pid": 0, "model_name": "海洋馆新闻信息" //模型名称 }, { "id": 11, "type": "list", "model_id": 4, "parent_id": 0, "name": " 海洋油气", "image": "", "flag": "", "keywords": "", "description": "", "diyname": "haiyangyouyi", "outlink": "", "items": 0, "weigh": 6, "theme": "default", "channeltpl": "channel_news.html", "listtpl": "list_news.html", "showtpl": "show_news.html", "pagesize": 10, "iscontribute": 0, "isnav": 1, "createtime": 1571295320, "updatetime": 1571295523, "status": "normal", "type_text": "List", "status_text": "正常", "url": "/cms/c/haiyangyouyi.html", "spacer": "", "haschild": 0, "pid": 0, "model_name": "海洋馆新闻信息" } ] } } ~~~