💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
**简要描述:** - 商品分类列表 **请求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 |子分类 |