简要描述:

商品分类列表接口

请求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": "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说明:

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

返回children说明:

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