Skip to content

商品分类

接口状态: 已完成
接口URL: GET http://商城域名/openapi/customer/Goods/CategoryList
认证方式: 无需认证

响应示例

成功(200)

json
{
  "code": 0, //状态码
  "message": "", //错误信息
  "data": [
    {
      "create_time": 1688045249, //创建时间
      "description": "", //分类描述
      "icon": "/", //分类图标
      "id": 100, //分类ID
      "name": "特惠商品", //分类名称
      "parent_id": 0, //上级分类ID
      "parent_infos": [], //二级分类
      "weight": 2 //排序
    },
    {
      "create_time": 1688120793, //创建时间
      "description": "", //分类描述
      "icon": "/", //分类图标
      "id": 101, //分类ID
      "name": "视频会员", //分类名称
      "parent_id": 0, //上级分类ID
      "parent_infos": [
        {
          "create_time": 1688120810,

          "description": "",

          "icon": "/",

          "id": 103,

          "name": "腾讯视频",

          "parent_id": 101,

          "parent_infos": [],

          "weight": 3

        },
        {
          "create_time": 1688120801,

          "description": "",

          "icon": "/",

          "id": 102,

          "name": "爱奇艺",

          "parent_id": 101,

          "parent_infos": [],

          "weight": 2

        }
      ], //二级分类
      "weight": 1 //排序
    }
  ]
}
参数名参数值参数类型描述说明
code0Integer状态码
messageString错误信息
dataArray
data.create_time1688045249Integer创建时间
data.descriptionString分类描述
data.icon/String分类图标
data.id100Integer分类ID
data.name特惠商品String分类名称
data.parent_id0Integer上级分类ID
data.parent_infosArray二级分类
data.weight2Integer排序