ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
**简要描述:** - 商品分类列表 **请求URL:** - `shopapi/goodsCategory/lists` **请求方式:** - GET **参数:** |参数名 |必选 |类型 |说明 | | ------ | ------ | ------ |------ | |level|是|int|level:1-返回一级分类;2-返回一二级分类、3-返回全部分类;不传该字段时返回全部分类 **返回示例** ``` { "code": 1, "show": 0, "msg": "", "data": { "lists": [ { "id": 4, "pid": 0, "name": "商品分类4", "level": 1, "image": "http://www.likeshopb2cv3.localhost/uploads/images/20210526104909d20777188.png", "sons": [ { "id": 7, "pid": 4, "name": "商品分类7", "level": 2, "image": "", "sons": [ { "id": 11, "pid": 7, "name": "商品分类11", "level": 3, "image": "", } ] } ] } ], "count": 11, "page_no": 1, "page_size": 25 } } ``` **返回参数: |参数名 |类型 |说明 | | ------ | ------ | ------ |------ | |id |int |分类id | |pid |int |父级id | |name |string |分类名称 | |level |int |分类等级 | |image |string |分类图标 | |sons |array |子分类 |