Appearance
商品分类
接口状态:
已完成
接口URL:GEThttp://商城域名/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 //排序
}
]
}| 参数名 | 参数值 | 参数类型 | 描述说明 |
|---|---|---|---|
| code | 0 | Integer | 状态码 |
| message | String | 错误信息 | |
| data | Array | ||
| data.create_time | 1688045249 | Integer | 创建时间 |
| data.description | String | 分类描述 | |
| data.icon | / | String | 分类图标 |
| data.id | 100 | Integer | 分类ID |
| data.name | 特惠商品 | String | 分类名称 |
| data.parent_id | 0 | Integer | 上级分类ID |
| data.parent_infos | Array | 二级分类 | |
| data.weight | 2 | Integer | 排序 |