简要描述:
商品分类列表接口
请求URL:
http(s)://平台域名/api/v1/goods/cate
请求方式:
POST
请求参数:
Header 参数 | 类型 | 是否必填 | 描述 | 示例值 |
---|---|---|---|---|
Sign | string | 是 | 签名 | 点击查看签名规范 |
Timestamp | string | 是 | 13位时间戳(毫秒) | 1696644296195 |
UserId | string | 是 | 您的用户接口appid | 2uIkTrXNdAFc7OKhbRenzjDtgPoZ6s5C |
Body 参数 | 类型 | 是否必填 | 描述 | 示例值 |
---|---|---|---|---|
无 | - | - | - | - |
签名示例:
1696644296195{}apikey
返回示例:
{ "code": 200, "msg": "成功", "data": [ { "id": 365, "name": "平台自营", "pid": 0, "img": "http://hy.ziyuanting.com/attach/2023/06/4d247202306110247593869.png", "children": [ { "id": 366, "name": "测试", "pid": 365, "img": "http://hy.ziyuanting.com/attach/2023/06/4d247202306110247593869.png" } ] }, { "id": 367, "name": "测试商品分类", "pid": 0, "img": "http://hy.ziyuanting.com/attach/2023/06/4d247202306110247593869.png", "children": [ { "id": 368, "name": "测试", "pid": 367, "img": "http://hy.ziyuanting.com/attach/2023/06/4d247202306110247593869.png" } ] } ] } }
返回data说明:
参数名 | 类型 | 描述 |
---|---|---|
id | int | 一级分类ID |
name | string | 一级分类名称 |
pid | int | 一级分类上级ID |
img | string | 一级分类图片 |
children | array | 二级分类列表 |
返回children说明:
参数名 | 类型 | 描述 |
---|---|---|
id | int | 二级分类ID |
name | string | 二级分类名称 |
pid | int | 二级分类上级ID |
img | string | 二级分类图片 |