1、获取所有分类及其子分类 websocket测试 GET /product/category/list/tree 接口描述 获取所有的分类及其子分类,以树形结构返回 响应参数 application/json 参数名 类型 描述 必填 code int 0—响应成功,其他—响应失败 必填 msg string 提示信息 必填 data array 返回所有的菜单 必填 catId int 分类ID 必填 name string 分类名称 必填 parentCid int 父分类id 必填 catLevel int 层级 必填 showStatus int 是否显示[0-不显示,1显示] 必填 sort int 排序 必填 icon string 图标 必填 productUnit string 计量单位 必填 productCount int 商品数量 必填 children array 所有子分类 必填 说明 / 示例 ```json { "code": 0, "msg": "success", "data": [{ "catId": 1, "name": "图书、音像、电子书刊", "parentCid": 0, "catLevel": 1, "showStatus": 1, "sort": 0, "icon": null, "productUnit": null, "productCount": 0, "children": [] }] } ```
```json { "code": 0, "msg": "success", "data": [{ "catId": 1, "name": "图书、音像、电子书刊", "parentCid": 0, "catLevel": 1, "showStatus": 1, "sort": 0, "icon": null, "productUnit": null, "productCount": 0, "children": [] }] } ```