Authored by tanling

销售类目提交

... ... @@ -205,7 +205,8 @@
"categoryName": "裙装",
"status": 1
}]
}]
}],
"md5": "d751713988987e9331980363e24189ce"
}
```
... ... @@ -219,7 +220,7 @@
-------------------------
|属性名称|类型|例子|说明|是否必填|
|-------|----|----|----|-------|
|state|int|5|状态|是|
|state|int|1|状态 1:开启, 0:关闭|是|
--------------------------------
### 返回
... ... @@ -415,7 +416,8 @@
"categoryName": "裙装",
"status": 1
}]
}]
}],
"md5": "d751713988987e9331980363e24189ce"
}
```
... ... @@ -429,13 +431,251 @@
-------------------------
|属性名称|类型|例子|说明|是否必填|
|-------|----|----|----|-------|
|categoryId|int|11|销售类目id|是|
|categoryId|int|59|销售类目id|是|
--------------------------------
### 返回
``` json
{
"code": 200,
"message": "querySalesCategoryById success",
"data": [{
"createTime": 1460079347,
"icon": 3,
"categoryId": 2,
"relationParameter": "227,173,125,258,121,123,119,124",
"orderBy": 1,
"parentId": 0,
"categoryCode": "2,0,0,0",
"relationUrl": "11",
"levelNumber": 1,
"categoryName": "女生",
"status": 1,
"relationProductSort": [{
"createTime": 0,
"gender": 3,
"id": 241,
"isHot": "N",
"orderBy": 0,
"parentId": 0,
"sortCode": "241,0,0",
"sortInitials": "数边",
"sortLevel": 1,
"sortName": "数码周边",
"status": 0,
"items": [{
"createTime": 0,
"gender": 3,
"id": 253,
"isHot": "N",
"orderBy": 0,
"parentId": 241,
"sortCode": "241,253,0",
"sortInitials": "UP",
"sortLevel": 2,
"sortName": "U盘",
"status": 0,
"items": [{
"createTime": 0,
"gender": 3,
"id": 254,
"isHot": "N",
"orderBy": 0,
"parentId": 253,
"sortCode": "241,253,254",
"sortLevel": 3,
"sortName": "U盘",
"status": 0,
"updateTime": 0
}],
"updateTime": 0
}, {
"createTime": 0,
"gender": 3,
"id": 255,
"isHot": "N",
"orderBy": 0,
"parentId": 241,
"sortCode": "241,255,0",
"sortLevel": 2,
"sortName": "相机",
"status": 0,
"items": [{
"createTime": 0,
"gender": 3,
"id": 256,
"isHot": "N",
"orderBy": 0,
"parentId": 255,
"sortCode": "241,255,256",
"sortLevel": 3,
"sortName": "相机",
"status": 0,
"updateTime": 0
}],
"updateTime": 0
}, {
"createTime": 0,
"gender": 3,
"id": 250,
"isHot": "N",
"orderBy": 0,
"parentId": 241,
"sortCode": "241,250,0",
"sortInitials": "22",
"sortLevel": 2,
"sortName": "耳机",
"status": 0,
"items": [{
"createTime": 0,
"gender": 3,
"id": 251,
"isHot": "N",
"orderBy": 0,
"parentId": 250,
"sortCode": "241,250,251",
"sortLevel": 3,
"sortName": "耳机",
"status": 0,
"updateTime": 0
}, {
"createTime": 0,
"gender": 3,
"id": 252,
"isHot": "N",
"orderBy": 0,
"parentId": 250,
"sortCode": "241,250,252",
"sortLevel": 3,
"sortName": "U盘",
"status": 0,
"updateTime": 0
}],
"updateTime": 1458284467
}, {
"createTime": 0,
"gender": 3,
"id": 247,
"isHot": "N",
"orderBy": 0,
"parentId": 241,
"sortCode": "241,247,0",
"sortInitials": "1",
"sortLevel": 2,
"sortName": "电脑包/架",
"status": 0,
"items": [{
"createTime": 0,
"gender": 3,
"id": 248,
"isHot": "N",
"orderBy": 0,
"parentId": 247,
"sortCode": "241,247,248",
"sortInitials": "22",
"sortLevel": 3,
"sortName": "电脑包",
"status": 0,
"updateTime": 1456481473
}, {
"createTime": 0,
"gender": 3,
"id": 249,
"isHot": "N",
"orderBy": 0,
"parentId": 247,
"sortCode": "241,247,249",
"sortLevel": 3,
"sortName": "电脑架",
"status": 0,
"updateTime": 0
}],
"updateTime": 1456482552
}, {
"createTime": 0,
"gender": 3,
"id": 244,
"isHot": "N",
"orderBy": 0,
"parentId": 241,
"sortCode": "241,244,0",
"sortInitials": "SJ",
"sortLevel": 2,
"sortName": "手机/ipad壳套",
"status": 0,
"items": [{
"createTime": 0,
"gender": 3,
"id": 246,
"isHot": "N",
"orderBy": 0,
"parentId": 244,
"sortCode": "241,244,246",
"sortLevel": 3,
"sortName": "ipad壳/套",
"status": 0,
"updateTime": 0
}, {
"createTime": 0,
"gender": 3,
"id": 245,
"isHot": "N",
"orderBy": 0,
"parentId": 244,
"sortCode": "241,244,245",
"sortLevel": 3,
"sortName": "手机/ipad壳套",
"status": 0,
"updateTime": 0
}],
"updateTime": 0
}, {
"createTime": 0,
"gender": 3,
"id": 242,
"isHot": "N",
"orderBy": 0,
"parentId": 241,
"sortCode": "241,242,0",
"sortLevel": 2,
"sortName": "数码配件",
"status": 0,
"items": [{
"createTime": 0,
"gender": 3,
"id": 243,
"isHot": "N",
"orderBy": 0,
"parentId": 242,
"sortCode": "241,242,243",
"sortLevel": 3,
"sortName": "数码配件",
"status": 0,
"updateTime": 0
}],
"updateTime": 0
}],
"updateTime": 1457085192
}, {
"booleanStatus": true,
"createTime": 1458284178,
"gender": 3,
"id": 563,
"isHot": "N",
"orderBy": 1,
"parentId": 0,
"sortCode": "563,0,0,0",
"sortInitials": "sadsad",
"sortLevel": 1,
"sortName": "sortName",
"status": 1,
"updateTime": 1458284178
}]
}],
"md5": "d751713988987e9331980363e24189ce"
}
```
... ... @@ -458,8 +698,6 @@
|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|审核时间|否
---------------------
### 返回
... ... @@ -469,51 +707,42 @@
"code": 200,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "addLimitCode success."
"message": "addSalesCategory success."
}
```
# 更新销售类目接口
# 更新限购码接口
> 接口名: `/limitCode/updateLimitCode`
> 接口名: `/salesCategory/updateSalesCategory`
### 入参
-------------------------
|属性名称|类型|例子|说明|是否必填|
|--------|----|----|----|--------|
|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|审核时间|否
|categoryId|int|4|销售类目id|是|
|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|销售类目等级|否
---------------------
### 返回
``` json
{
"code": 500,
"code": 200,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "updateLimitCode success."
"message": "updateSalesCategory success."
}
```
... ...