文档
测试

树形分类查询

GET
/category/list/tree

接口描述

树形分类结构查询

请求参数

参数名
类型
描述
必填

说明 / 示例

返回树状分类结构 包括标题 子节点信息 分类图标 ```java /** * 分类id */ private Integer catId; /** * 分类名称 */ private String name; /** * 父分类id */ private Integer parentCid; /** * 层级 */ private Integer catLevel; /** * 是否显示[0-不显示,1显示] */ private Boolean showStatus; /** * 排序 */ private Integer sort; /** * 图标地址 */ private String icon; /** * 计量单位 */ private String productUnit; /** * 商户id */ private Integer merchantId; /** * 子分类 */ private List<ProductCategoryVo> children; ``` 响应结果 ```json { "status": 200, "error": "", "message": "success", "payload": [ { "catId": 1, "name": "图书、音像、电子书刊", "parentCid": 0, "catLevel": 1, "showStatus": true, "sort": 1, "icon": null, "productUnit": null, "merchantId": 1, "children": [ { "catId": 22, "name": "电子书刊", "parentCid": 1, "catLevel": 2, "showStatus": true, "sort": 1, "icon": null, "productUnit": null, "merchantId": 1 }, { "catId": 23, "name": "音像", "parentCid": 1, "catLevel": 2, "showStatus": true, "sort": 1, "icon": null, "productUnit": null, "merchantId": 1 }, { "catId": 24, "name": "英文原版", "parentCid": 1, "catLevel": 2, "showStatus": true, "sort": 1, "icon": null, "productUnit": null, "merchantId": 1 }, { "catId": 25, "name": "文艺", "parentCid": 1, "catLevel": 2, "showStatus": true, "sort": 1, "icon": null, "productUnit": null, "merchantId": 1 }, { "catId": 26, "name": "少儿", "parentCid": 1, "catLevel": 2, "showStatus": true, "sort": 1, "icon": null, "productUnit": null, "merchantId": 1 }, { "catId": 27, "name": "人文社科", "parentCid": 1, "catLevel": 2, "showStatus": true, "sort": 1, "icon": null, "productUnit": null, "merchantId": 1 }, { "catId": 28, "name": "经管励志", "parentCid": 1, "catLevel": 2, "showStatus": true, "sort": 1, "icon": null, "productUnit": null, "merchantId": 1 }, { "catId": 29, "name": "生活", "parentCid": 1, "catLevel": 2, "showStatus": true, "sort": 1, "icon": null, "productUnit": null, "merchantId": 1 }, { "catId": 30, "name": "科技", "parentCid": 1, "catLevel": 2, "showStatus": true, "sort": 1, "icon": null, "productUnit": null, "merchantId": 1 }, { "catId": 31, "name": "教育", "parentCid": 1, "catLevel": 2, "showStatus": true, "sort": 1, "icon": null, "productUnit": null, "merchantId": 1 }, { "catId": 32, "name": "港台图书", "parentCid": 1, "catLevel": 2, "showStatus": true, "sort": 1, "icon": null, "productUnit": null, "merchantId": 1 }, { "catId": 33, "name": "其他", "parentCid": 1, "catLevel": 2, "showStatus": true, "sort": 1, "icon": null, "productUnit": null, "merchantId": 1 } ] } ] } ```