多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
**简要说明** * 商品分类 **请求URL:** * `index/Goods/cate` **参数** * 无 **返回示例** ``` { "code": 1, "msg": "操作成功", "data": [ { "id": 12, "pid": 0, "name": "居家生活", "img": "/uploads/20200319/afd1fc9bd44bbfd0049e7fb4a1527019.jpg", "child": [ { "id": 13, "pid": 12, "name": "家具", "img": "/uploads/20200324/99fa2387e83ba1fb69d7194e5008d98b.png", "child": [] }, { "id": 14, "pid": 12, "name": "灯具", "img": "/uploads/20200324/ca94656321c2c412577094007501910f.png", "child": [] } ] }, { "id": 10, "pid": 0, "name": "手机数码", "img": "/uploads/20200330/e00ec5b8b570ef722e95dd71a2f38894.jpg", "child": [ { "id": 15, "pid": 10, "name": "华为手机", "img": "/uploads/20200401/9625a96e9a5a82625ff048628bd5cb3a.png", "child": [] } ] } ] } ``` **data返回值说明** | 参数 | 类型 | 描述 | | --- | --- | --- | | id | number | 分类id | | pid | number | 上级分类id | | name | string | 分类名称 | | img | string | 分类图片 | | \- child | object | 子分类信息 |