商品分类列表

简要描述:

商品分类列表接口

请求URL:

http(s)://域名/api/v1/goods/cate

请求方式:

POST

请求参数:

Header 参数类型是否必填描述示例值
Signstring签名点击查看签名规范
Timestampstring13位时间戳(毫秒)1696644296195
UserIdstring您的用户接口appid2uIkTrXNdAFc7OKhbRenzjDtgPoZ6s5C
Body 参数类型是否必填描述示例值

签名示例:

1696644296195{}apikey

返回示例:

{
    "code": 200,
    "msg": "成功",
    "data": [
        {
            "id": 365,
            "name": "平台自营",
            "pid": 0,
            "img": "https://img.hmxn.cc/images/2025/07/28/0c1bd0c40657.jpg",
            "children": [
                {
                    "id": 366,
                    "name": "测试",
                    "pid": 365,
                    "img": "https://img.hmxn.cc/images/2025/07/28/0c1bd0c40657.jpg",
                    "children": [
                        {
                            "id": 7327,
                            "name": "三级",
                            "pid": 365,
                            "img": "https://img.hmxn.cc/images/2025/07/28/0c1bd0c40657.jpg"
                        }
                    ]
                }
            ]
        },
        {
            "id": 367,
            "name": "测试商品分类",
            "pid": 0,
            "img": "https://img.hmxn.cc/images/2025/07/28/0c1bd0c40657.jpg",
            "children": [
                {
                    "id": 368,
                    "name": "测试",
                    "pid": 367,
                    "img": "https://img.hmxn.cc/images/2025/07/28/0c1bd0c40657.jpg"
                }
            ]
        }
    ]
}
}

返回data说明:

参数名类型描述
idint一级分类ID
namestring一级分类名称
pidint一级分类上级ID
imgstring一级分类图片
childrenarray二级分类列表

返回children说明:

参数名类型描述
idint二级分类ID
namestring二级分类名称
pidint二级分类上级ID
imgstring二级分类图片
childrenarray三级分类列表

返回children说明:

参数名类型描述
idint二级分类ID
namestring二级分类名称
pidint二级分类上级ID
imgstring二级分类图片
联系我们

联系我们

400-696-1187

在线咨询:点击这里给我发消息

邮件:service@wanfengwl.cn

工作时间:

正常工作日 8:30 - 22:30

周末/节假日10:30 - 18:30

关注微信
关注微信
分享本页
返回顶部