|
|
# 销售类目接口服务定义
|
|
|
---------------------
|
|
|
|
|
|
# 全件检索销售类目列表
|
|
|
|
|
|
> 接口名: `/salesCategory/queryAllSalesCategoryList`
|
|
|
|
|
|
### 入参
|
|
|
|
|
|
-------------------------
|
|
|
|属性名称|类型|例子|说明|是否必填|
|
|
|
|-------|----|----|----|-------|
|
|
|
--------------------------------
|
|
|
|
|
|
### 返回
|
|
|
|
|
|
``` json
|
|
|
{
|
|
|
"code": 200,
|
|
|
"message": "queryAllSalesCategoryList success",
|
|
|
"data": [{
|
|
|
"createTime": 1441117726,
|
|
|
"icon": "",
|
|
|
"categoryId": 1,
|
|
|
"relationParameter": "114,293,116,117,115,119,124,122,131,129,346,133,348,147,149,148,151,231,152,153,196,238,239,240,349,157,342,156,161,300,160,233,341,340,210,339,351,186,235,163,224,322,323,324,325,326,327,328,329,330,331,72,74,75,76,142,77,78,79,80,199,213,217,218,234,303,305,306,307,334,162,316,164,317,295,321,311,357,359,320,195,197,413,130,258,173,227,125,118,121,123,263,260,264,261,352",
|
|
|
"orderBy": 0,
|
|
|
"parentId": 0,
|
|
|
"categoryCode": "1,0,0,0",
|
|
|
"relationUrl": "",
|
|
|
"levelNumber": 1,
|
|
|
"categoryName": "男生",
|
|
|
"status": 1,
|
|
|
"items": [{
|
|
|
"createTime": 1441117792,
|
|
|
"icon": "http://img11.static.yhbimg.com/taobaocms/2015/09/01/14/01d48022e08742f1c96766caa6484593ce.jpg?imageView/{mode}/w/{width}/h/{height}",
|
|
|
"categoryId": 5,
|
|
|
"relationParameter": "114,293,116,117,115,119,124,122,413,258,173,227,125,118,121,123",
|
|
|
"orderBy": 10,
|
|
|
"parentId": 1,
|
|
|
"categoryCode": "1,5,0,0",
|
|
|
"relationUrl": "",
|
|
|
"levelNumber": 2,
|
|
|
"categoryName": "上衣",
|
|
|
"status": 1,
|
|
|
"items": [{
|
|
|
"relationUrl": "",
|
|
|
"createTime": 0,
|
|
|
"icon": 3,
|
|
|
"categoryId": 45,
|
|
|
"relationParameter": "114,293",
|
|
|
"orderBy": 5,
|
|
|
"parentId": 5,
|
|
|
"categoryCode": "1,5,45,0",
|
|
|
"levelNumber": 3,
|
|
|
"categoryName": "T恤",
|
|
|
"status": 1
|
|
|
}]
|
|
|
}, {
|
|
|
"relationUrl": "",
|
|
|
"createTime": 1441117934,
|
|
|
"icon": "http://img11.static.yhbimg.com/taobaocms/2015/09/01/14/019b1a20d4cf319e0e8035cacf2d1d231f.jpg?imageView/{mode}/w/{width}/h/{height}",
|
|
|
"categoryId": 8,
|
|
|
"relationParameter": "131,129,346,133,348,130,114,293",
|
|
|
"orderBy": 9,
|
|
|
"parentId": 1,
|
|
|
"categoryCode": "1,8,0,0",
|
|
|
"levelNumber": 2,
|
|
|
"categoryName": "裤装",
|
|
|
"status": 1,
|
|
|
"items": [{
|
|
|
"relationUrl": "UP",
|
|
|
"createTime": 1441118557,
|
|
|
"icon": 3,
|
|
|
"categoryId": 86,
|
|
|
"relationParameter": "131",
|
|
|
"orderBy": 3,
|
|
|
"parentId": 8,
|
|
|
"categoryCode": "1,8,86,0",
|
|
|
"levelNumber": 3,
|
|
|
"categoryName": "短裤",
|
|
|
"status": 1
|
|
|
}]
|
|
|
}, {
|
|
|
"createTime": 0,
|
|
|
"icon": 3,
|
|
|
"categoryId": 11,
|
|
|
"relationParameter": "147,149,148,151,231",
|
|
|
"orderBy": 8,
|
|
|
"parentId": 1,
|
|
|
"categoryCode": "1,11,0,0",
|
|
|
"relationUrl": "22",
|
|
|
"levelNumber": 2,
|
|
|
"categoryName": "鞋靴",
|
|
|
"status": 1,
|
|
|
"items": [{
|
|
|
"relationUrl": "UP",
|
|
|
"createTime": 0,
|
|
|
"icon": "",
|
|
|
"categoryId": 107,
|
|
|
"relationParameter": "147",
|
|
|
"orderBy": 0,
|
|
|
"parentId": 11,
|
|
|
"categoryCode": "1,11,107,0",
|
|
|
"levelNumber": 3,
|
|
|
"categoryName": "休闲/运动鞋",
|
|
|
"status": 1
|
|
|
}, {
|
|
|
"relationUrl": "UP",
|
|
|
"createTime": 0,
|
|
|
"icon": "",
|
|
|
"categoryId": 113,
|
|
|
"relationParameter": "149",
|
|
|
"orderBy": 0,
|
|
|
"parentId": 11,
|
|
|
"categoryCode": "1,11,113,0",
|
|
|
"levelNumber": 3,
|
|
|
"categoryName": "凉鞋/凉拖",
|
|
|
"status": 0
|
|
|
}]
|
|
|
}, {
|
|
|
"relationUrl": "",
|
|
|
"createTime": 0,
|
|
|
"icon": "",
|
|
|
"categoryId": 14,
|
|
|
"relationParameter": "152,153,196,238,239,240,349,157,342,156,161,300,160,233,341,340,210,339,351,195,197",
|
|
|
"orderBy": 11,
|
|
|
"parentId": 1,
|
|
|
"categoryCode": "1,17,0,0",
|
|
|
"levelNumber": 2,
|
|
|
"categoryName": "包类",
|
|
|
"status": 0,
|
|
|
"items": [{
|
|
|
"relationUrl": "UP",
|
|
|
"createTime": 0,
|
|
|
"icon": 3,
|
|
|
"categoryId": 147,
|
|
|
"relationParameter": "238,239,240,349",
|
|
|
"orderBy": 12,
|
|
|
"parentId": 14,
|
|
|
"categoryCode": "1,14,147,0",
|
|
|
"levelNumber": 3,
|
|
|
"categoryName": "钱包/卡包/手包/钥匙包",
|
|
|
"status": 1
|
|
|
}]
|
|
|
}, {
|
|
|
"createTime": 0,
|
|
|
"icon": 3,
|
|
|
"categoryId": 17,
|
|
|
"relationParameter": "186,235,163,224,322,323,324,325,326,327,328,329,330,331,72,74,75,76,142,77,78,79,80,199,213,217,218,234,303,305,306,307,334,162,316,320,164,317,295,321",
|
|
|
"orderBy": 0,
|
|
|
"parentId": 1,
|
|
|
"categoryCode": "1,17,0,0",
|
|
|
"relationUrl": "SJ",
|
|
|
"levelNumber": 2,
|
|
|
"categoryName": "服配",
|
|
|
"status": 0,
|
|
|
"items": [{
|
|
|
"relationUrl": "",
|
|
|
"createTime": 0,
|
|
|
"icon": "",
|
|
|
"categoryId": 177,
|
|
|
"relationParameter": "186,235",
|
|
|
"orderBy": 0,
|
|
|
"parentId": 17,
|
|
|
"categoryCode": "1,17,177,0",
|
|
|
"levelNumber": 3,
|
|
|
"categoryName": "太阳镜/眼镜",
|
|
|
"status": 1
|
|
|
}, {
|
|
|
"relationUrl": "UP",
|
|
|
"createTime": 0,
|
|
|
"icon": 3,
|
|
|
"categoryId": 246,
|
|
|
"relationParameter": "163,224,322,323,324,325,326,327,328,329,330,331",
|
|
|
"orderBy": 0,
|
|
|
"parentId": 17,
|
|
|
"categoryCode": "1,17,178,0",
|
|
|
"levelNumber": 3,
|
|
|
"categoryName": "帽子",
|
|
|
"status": 1
|
|
|
}]
|
|
|
}]
|
|
|
}, {
|
|
|
"createTime": 1460079347,
|
|
|
"icon": 3,
|
|
|
"categoryId": 2,
|
|
|
"relationParameter": "227,173,125,258,121,123,119,124,118,348,122,115,117,346,114,293,131,133,186,235,163,224,322,323,324,325,326,327,328,329,330,331,72,74,75,76,142,77,78,79,80,199,213,217,218,234,303,305,306,307,334,162,316,320,164,317,295,321,147,149,148,151,231,311,364,357,359,116,129,134,135,413,152,153,238,239,240,349,157,342,156,161,300,160,233,341,340,210,339,351,195,196,197,263",
|
|
|
"orderBy": 1,
|
|
|
"parentId": 0,
|
|
|
"categoryCode": "2,0,0,0",
|
|
|
"relationUrl": "11",
|
|
|
"levelNumber": 1,
|
|
|
"categoryName": "女生",
|
|
|
"status": 1,
|
|
|
"items": [{
|
|
|
"createTime": 1460079406,
|
|
|
"icon": 3,
|
|
|
"categoryId": 31,
|
|
|
"relationParameter": "134,135",
|
|
|
"orderBy": 111,
|
|
|
"parentId": 2,
|
|
|
"categoryCode": "2,31,0,0",
|
|
|
"relationUrl": "11",
|
|
|
"levelNumber": 2,
|
|
|
"categoryName": "裙装",
|
|
|
"status": 1
|
|
|
}]
|
|
|
}]
|
|
|
}
|
|
|
|
|
|
```
|
|
|
|
|
|
# 根据状态获取销售类目接口
|
|
|
|
|
|
> 接口名: `/salesCategory/querySalesCategoryListByStatus`
|
|
|
|
|
|
### 入参
|
|
|
|
|
|
-------------------------
|
|
|
|属性名称|类型|例子|说明|是否必填|
|
|
|
|-------|----|----|----|-------|
|
|
|
|state|int|5|状态|是|
|
|
|
--------------------------------
|
|
|
|
|
|
### 返回
|
|
|
|
|
|
``` json
|
|
|
{
|
|
|
"code": 200,
|
|
|
"message": "querySalesCategoryListByStatus success",
|
|
|
"data": [{
|
|
|
"createTime": 1441117726,
|
|
|
"icon": "",
|
|
|
"categoryId": 1,
|
|
|
"relationParameter": "114,293,116,117,115,119,124,122,131,129,346,133,348,147,149,148,151,231,152,153,196,238,239,240,349,157,342,156,161,300,160,233,341,340,210,339,351,186,235,163,224,322,323,324,325,326,327,328,329,330,331,72,74,75,76,142,77,78,79,80,199,213,217,218,234,303,305,306,307,334,162,316,164,317,295,321,311,357,359,320,195,197,413,130,258,173,227,125,118,121,123,263,260,264,261,352",
|
|
|
"orderBy": 0,
|
|
|
"parentId": 0,
|
|
|
"categoryCode": "1,0,0,0",
|
|
|
"relationUrl": "",
|
|
|
"levelNumber": 1,
|
|
|
"categoryName": "男生",
|
|
|
"status": 1,
|
|
|
"items": [{
|
|
|
"createTime": 1441117792,
|
|
|
"icon": "http://img11.static.yhbimg.com/taobaocms/2015/09/01/14/01d48022e08742f1c96766caa6484593ce.jpg?imageView/{mode}/w/{width}/h/{height}",
|
|
|
"categoryId": 5,
|
|
|
"relationParameter": "114,293,116,117,115,119,124,122,413,258,173,227,125,118,121,123",
|
|
|
"orderBy": 10,
|
|
|
"parentId": 1,
|
|
|
"categoryCode": "1,5,0,0",
|
|
|
"relationUrl": "",
|
|
|
"levelNumber": 2,
|
|
|
"categoryName": "上衣",
|
|
|
"status": 1,
|
|
|
"items": [{
|
|
|
"relationUrl": "",
|
|
|
"createTime": 0,
|
|
|
"icon": 3,
|
|
|
"categoryId": 45,
|
|
|
"relationParameter": "114,293",
|
|
|
"orderBy": 5,
|
|
|
"parentId": 5,
|
|
|
"categoryCode": "1,5,45,0",
|
|
|
"levelNumber": 3,
|
|
|
"categoryName": "T恤",
|
|
|
"status": 1
|
|
|
}]
|
|
|
}, {
|
|
|
"relationUrl": "",
|
|
|
"createTime": 1441117934,
|
|
|
"icon": "http://img11.static.yhbimg.com/taobaocms/2015/09/01/14/019b1a20d4cf319e0e8035cacf2d1d231f.jpg?imageView/{mode}/w/{width}/h/{height}",
|
|
|
"categoryId": 8,
|
|
|
"relationParameter": "131,129,346,133,348,130,114,293",
|
|
|
"orderBy": 9,
|
|
|
"parentId": 1,
|
|
|
"categoryCode": "1,8,0,0",
|
|
|
"levelNumber": 2,
|
|
|
"categoryName": "裤装",
|
|
|
"status": 1,
|
|
|
"items": [{
|
|
|
"relationUrl": "UP",
|
|
|
"createTime": 1441118557,
|
|
|
"icon": 3,
|
|
|
"categoryId": 86,
|
|
|
"relationParameter": "131",
|
|
|
"orderBy": 3,
|
|
|
"parentId": 8,
|
|
|
"categoryCode": "1,8,86,0",
|
|
|
"levelNumber": 3,
|
|
|
"categoryName": "短裤",
|
|
|
"status": 1
|
|
|
}]
|
|
|
}, {
|
|
|
"createTime": 0,
|
|
|
"icon": 3,
|
|
|
"categoryId": 11,
|
|
|
"relationParameter": "147,149,148,151,231",
|
|
|
"orderBy": 8,
|
|
|
"parentId": 1,
|
|
|
"categoryCode": "1,11,0,0",
|
|
|
"relationUrl": "22",
|
|
|
"levelNumber": 2,
|
|
|
"categoryName": "鞋靴",
|
|
|
"status": 1,
|
|
|
"items": [{
|
|
|
"relationUrl": "UP",
|
|
|
"createTime": 0,
|
|
|
"icon": "",
|
|
|
"categoryId": 107,
|
|
|
"relationParameter": "147",
|
|
|
"orderBy": 0,
|
|
|
"parentId": 11,
|
|
|
"categoryCode": "1,11,107,0",
|
|
|
"levelNumber": 3,
|
|
|
"categoryName": "休闲/运动鞋",
|
|
|
"status": 1
|
|
|
}, {
|
|
|
"relationUrl": "UP",
|
|
|
"createTime": 0,
|
|
|
"icon": "",
|
|
|
"categoryId": 113,
|
|
|
"relationParameter": "149",
|
|
|
"orderBy": 0,
|
|
|
"parentId": 11,
|
|
|
"categoryCode": "1,11,113,0",
|
|
|
"levelNumber": 3,
|
|
|
"categoryName": "凉鞋/凉拖",
|
|
|
"status": 0
|
|
|
}]
|
|
|
}, {
|
|
|
"relationUrl": "",
|
|
|
"createTime": 0,
|
|
|
"icon": "",
|
|
|
"categoryId": 14,
|
|
|
"relationParameter": "152,153,196,238,239,240,349,157,342,156,161,300,160,233,341,340,210,339,351,195,197",
|
|
|
"orderBy": 11,
|
|
|
"parentId": 1,
|
|
|
"categoryCode": "1,17,0,0",
|
|
|
"levelNumber": 2,
|
|
|
"categoryName": "包类",
|
|
|
"status": 0,
|
|
|
"items": [{
|
|
|
"relationUrl": "UP",
|
|
|
"createTime": 0,
|
|
|
"icon": 3,
|
|
|
"categoryId": 147,
|
|
|
"relationParameter": "238,239,240,349",
|
|
|
"orderBy": 12,
|
|
|
"parentId": 14,
|
|
|
"categoryCode": "1,14,147,0",
|
|
|
"levelNumber": 3,
|
|
|
"categoryName": "钱包/卡包/手包/钥匙包",
|
|
|
"status": 1
|
|
|
}]
|
|
|
}, {
|
|
|
"createTime": 0,
|
|
|
"icon": 3,
|
|
|
"categoryId": 17,
|
|
|
"relationParameter": "186,235,163,224,322,323,324,325,326,327,328,329,330,331,72,74,75,76,142,77,78,79,80,199,213,217,218,234,303,305,306,307,334,162,316,320,164,317,295,321",
|
|
|
"orderBy": 0,
|
|
|
"parentId": 1,
|
|
|
"categoryCode": "1,17,0,0",
|
|
|
"relationUrl": "SJ",
|
|
|
"levelNumber": 2,
|
|
|
"categoryName": "服配",
|
|
|
"status": 0,
|
|
|
"items": [{
|
|
|
"relationUrl": "",
|
|
|
"createTime": 0,
|
|
|
"icon": "",
|
|
|
"categoryId": 177,
|
|
|
"relationParameter": "186,235",
|
|
|
"orderBy": 0,
|
|
|
"parentId": 17,
|
|
|
"categoryCode": "1,17,177,0",
|
|
|
"levelNumber": 3,
|
|
|
"categoryName": "太阳镜/眼镜",
|
|
|
"status": 1
|
|
|
}, {
|
|
|
"relationUrl": "UP",
|
|
|
"createTime": 0,
|
|
|
"icon": 3,
|
|
|
"categoryId": 246,
|
|
|
"relationParameter": "163,224,322,323,324,325,326,327,328,329,330,331",
|
|
|
"orderBy": 0,
|
|
|
"parentId": 17,
|
|
|
"categoryCode": "1,17,178,0",
|
|
|
"levelNumber": 3,
|
|
|
"categoryName": "帽子",
|
|
|
"status": 1
|
|
|
}]
|
|
|
}]
|
|
|
}, {
|
|
|
"createTime": 1460079347,
|
|
|
"icon": 3,
|
|
|
"categoryId": 2,
|
|
|
"relationParameter": "227,173,125,258,121,123,119,124,118,348,122,115,117,346,114,293,131,133,186,235,163,224,322,323,324,325,326,327,328,329,330,331,72,74,75,76,142,77,78,79,80,199,213,217,218,234,303,305,306,307,334,162,316,320,164,317,295,321,147,149,148,151,231,311,364,357,359,116,129,134,135,413,152,153,238,239,240,349,157,342,156,161,300,160,233,341,340,210,339,351,195,196,197,263",
|
|
|
"orderBy": 1,
|
|
|
"parentId": 0,
|
|
|
"categoryCode": "2,0,0,0",
|
|
|
"relationUrl": "11",
|
|
|
"levelNumber": 1,
|
|
|
"categoryName": "女生",
|
|
|
"status": 1,
|
|
|
"items": [{
|
|
|
"createTime": 1460079406,
|
|
|
"icon": 3,
|
|
|
"categoryId": 31,
|
|
|
"relationParameter": "134,135",
|
|
|
"orderBy": 111,
|
|
|
"parentId": 2,
|
|
|
"categoryCode": "2,31,0,0",
|
|
|
"relationUrl": "11",
|
|
|
"levelNumber": 2,
|
|
|
"categoryName": "裙装",
|
|
|
"status": 1
|
|
|
}]
|
|
|
}]
|
|
|
}
|
|
|
|
|
|
```
|
|
|
|
|
|
# 根据销售类目的id查询销售类目接口
|
|
|
|
|
|
> 接口名: `/salesCategory/querySalesCategoryById`
|
|
|
|
|
|
### 入参
|
|
|
|
|
|
-------------------------
|
|
|
|属性名称|类型|例子|说明|是否必填|
|
|
|
|-------|----|----|----|-------|
|
|
|
|categoryId|int|11|销售类目id|是|
|
|
|
--------------------------------
|
|
|
|
|
|
### 返回
|
|
|
|
|
|
``` json
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
# 添加销售类目接口
|
|
|
|
|
|
> 接口名: `/salesCategory/addSalesCategory`
|
|
|
|
|
|
### 入参
|
|
|
|
|
|
-------------------------
|
|
|
|属性名称|类型|例子|说明|是否必填|
|
|
|
|--------|----|----|----|--------|
|
|
|
|categoryName|String|创意家居|销售类目名称|是|
|
|
|
|relationParameter|String|285,113|关联的物理类目id|否|
|
|
|
|relationUrl|string||关联url|否|
|
|
|
|parentId|int|1|父销售类目id|否|
|
|
|
|orderBy|int|0|排序|否|
|
|
|
|icon|string||销售类目图标|否|
|
|
|
|categoryCode|String|4,0,0,0|一级目录到当前的目录,不足4位末尾补齐|否|
|
|
|
|status|int|0|销售类目状态1:开启 1:关闭 |否
|
|
|
|levelNumber|int|1|销售类目等级|否
|
|
|
|batchNo|string|201602021023|批次号|是
|
|
|
|auditTime|string|2016-01-30 15:00:00|审核时间|否
|
|
|
---------------------
|
|
|
|
|
|
### 返回
|
|
|
|
|
|
``` json
|
|
|
{
|
|
|
"code": 200,
|
|
|
"data": [],
|
|
|
"md5": "d751713988987e9331980363e24189ce",
|
|
|
"message": "addLimitCode success."
|
|
|
}
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# 更新限购码接口
|
|
|
|
|
|
> 接口名: `/limitCode/updateLimitCode`
|
|
|
|
|
|
### 入参
|
|
|
|
|
|
-------------------------
|
|
|
|属性名称|类型|例子|说明|是否必填|
|
|
|
|--------|----|----|----|--------|
|
|
|
|id|int|6|限购码ID|是|
|
|
|
|name|string|潮流尖货限购码|限购码名称|是|
|
|
|
|limitTimes|int|100|数量|是|
|
|
|
|reqDepartment|string|运营部|申请部门|否|
|
|
|
|limitDateFrom|string|2016-02-01 14:00:00|起始时间|是|
|
|
|
|limitDateTo|string|2016-02-20 14:00:00|失效时间|是|
|
|
|
|describe|string|耐克新款|限购码描述|否|
|
|
|
|userUseLimit|int|1|用户使用次数|否|
|
|
|
|userTypeLimit|int|1|用户类型|否
|
|
|
|limitSkn|string|50012345|限购商品skn|否
|
|
|
|creatorName|string|张三|创建者名称|否
|
|
|
|creatorId|int|12401|创建者ID|否
|
|
|
|createTime|string|2016-01-29 15:00:00|创建时间|否
|
|
|
|status|int|0|限购码状态0:待审核 1:审核通过 2:驳回 3:过期 4:作废|否
|
|
|
|reason|string|预算不够|驳回原因|否
|
|
|
|batchNo|string|201602021023|批次号|是
|
|
|
|auditTime|string|2016-01-30 15:00:00|审核时间|否
|
|
|
---------------------
|
|
|
|
|
|
### 返回
|
|
|
|
|
|
``` json
|
|
|
{
|
|
|
"code": 500,
|
|
|
"data": [],
|
|
|
"md5": "d751713988987e9331980363e24189ce",
|
|
|
"message": "updateLimitCode success."
|
|
|
}
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
...
|
...
|
|