简要描述:
- 一二级分类获取
请求域名:
- http://xx.com
请求URL:
GET/plugin.store-cashier.admin.goods.get-category
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
parent_id | 否 | int | 有值则是二级分类 |
返回示例:
正确时返回:
{
"result": 1,
"msg": "成功",
"data": [
{
"name": "子分类1",
"id": 172
},
{
"name": "子分类2",
"id": 171
}
]
}
返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
name | string | 分类名称 |
id | int | 分类id(二级分类的父id) |
备注:
- parent_id取自一级分类的id