Appearance
4.1.2获取商品全量分类
接口说明:
Method | URL | ContentType |
---|---|---|
GET | /api/restful/categories/page | application/json |
URL参数说明:
参数 | 是否必须 | 描述 |
---|---|---|
pageNum | 必须 | 页号,必须大于0 |
pageSize | 必须 | 获取数据的大小,必须大于0 |
level | 非必须 | 分类层级,不填的情况默认返回全部 |
parentld | 非必须 | 父类编码,不填的情况默认返回全部 |
customerCode | 非必须 | 客户编码,不填的情况默认返回全部 |
id | 非必须 | 分类编码,不填的情况默认返回全部 |
返回结果说明:
参数 | 类型说明 | 描述 |
---|---|---|
success | bool | 成功:true 失败:false |
errorcode | int | 错误码 |
errormsg | string | 错误消息 |
result | Json 数组 | 全量分类 |
请求参数示例:
/api/restful/categories/page
返回数据示例:
json
{
"success": true,
"requestId": "D7C5294D-2811-4500-9C55-0F8CDCBB0CFF",
"result": {
"pageNum": 1,
"pageSize": 100,
"pageTotal": 12,
"pageCount": 1,
"items": [
{
"parentId": "10259013",
"customerCode": "*",
"level": 3,
"name": "2G模块",
"id": "10259014"
},
{
"parentId": "10259013",
"customerCode": "*",
"level": 3,
"name": "4G模块",
"id": "10259024"
},
{
"parentId": "10259013",
"customerCode": "*",
"level": 3,
"name": "OBU模块",
"id": "12250936"
}
]
},
"errorcode": "0",
"errormsg": ""
}