获取商品类别

请求地址: 

https://open.dlszywz.cn/open/product/getProClass


请求方式:

  • GET

参数:


参数名必选类型说明
tokenstring授权令牌 【通过header参数传值】
channel_idstring栏目ID



返回示例

{
    "code":200,
    "data":{
        "list":[{
            "channelid":21918256,
            "channelname":"MIEVIC",
            "channelorder_sort":0,
            "classlist":[
                {
                    "id":5774895,
                    "classname":"秒杀专区",
                    "type":"1",
                    "parentid":0,
                    "order_sort":0
                },
                {
                    "id":5683762,
                    "classname":"特价专区",
                    "type":"2",
                    "parentid":5678943,
                    "order_sort":0
                }
            ]
        }]
    },
    "msg":"success code: 200",
    "param":{}
}


返回参数说明

参数名类型说明
channelIdint栏目ID
channelnamevarchar栏目名称
channelorder_sortint栏目排序(越大越靠前)
classlistarray栏目下的类别列表 
idint类别ID
classnamevarchar类别名称
typeint类别层级(1大类 2小类 3小小类)
parentidint类别父级
order_sortint类别排序(越大越靠前)


备注

  • 更多返回错误代码请看首页的错误代码描述