Authored by lijian

Merge branch 'develop' of http://git.dev.yoho.cn/platform/yohobuy-doc into develop

... ... @@ -20,44 +20,47 @@
{
"code": 200,
"data": {
"list": [],
"page": 2,
"plat_list": [
"list": [
{
"createTime": 1430300615,
"platformFlag": "iphone",
"code": "8c48745a39373d621bf5fd80edf59b5e",
"createTime": 1430725440,
"id": 16,
"matchCode": "",
"name": "男装底部切换到女装首页banner",
"platformId": 1,
"platformName": "yohoApp",
"status": 0
}
],
"resources_list": [
"sortId": 2,
"sortName": "男首"
},
{
"code": "02568b6042510e4be739cc688dc7d6ae",
"createTime": 1444448085,
"id": 279,
"name": "逛.pc网站首页右侧广告位(创意生活)",
"platformId": 5,
"platformName": "web",
"sortId": 4,
"sortName": "逛列表页"
}
],
"size": 10,
"sort_id": 4,
"sort_list": [
"code": "c63939b2ad458e9cb51147940c1da2e5",
"createTime": 1430725950,
"id": 17,
"matchCode": "",
"name": "女首进入男首的banner",
"platformId": 1,
"platformName": "yohoApp",
"sortId": 3,
"sortName": "女首"
},
{
"createTime": 1430304722,
"code": "b714c25f503ab4e6bc143a42d1404cbb",
"createTime": 1430809519,
"id": 18,
"matchCode": "",
"name": "Plus 国际优选推荐头部广告",
"platformId": 1,
"sortId": 2,
"sortName": "男首",
"status": 1
"platformName": "yohoApp",
"sortId": 5,
"sortName": "Plus/Star"
}
],
"total": 15,
"totalPage": 2
"page": 1,
"size": 10,
"total": 300,
"totalPage": 30
},
"md5": "c88f34a1ec20168782345b0c6754b83d",
"md5": "e2fb724dc52c04d4e4cca72f3726e971",
"message": "操作成功"
}
... ... @@ -509,16 +512,45 @@ result:
``` json
{
"code": 200,
"data": [
{
"createTime": 1430300615,
"platformFlag": "iphone",
"platformId": 1,
"platformName": "yohoApp",
"status": 1
}
],
"md5": "b01118ada14ad7204d1182c3fa75563a",
"data": {
"platforms": [
{
"createTime": 1458719791,
"platformFlag": "321",
"platformId": 14,
"platformName": "321",
"status": 1
},
{
"createTime": 1432882973,
"platformFlag": "hf",
"platformId": 9,
"platformName": "wap",
"status": 1
},
{
"createTime": 1431670386,
"platformFlag": "ipad",
"platformId": 6,
"platformName": "yohoipad",
"status": 1
},
{
"createTime": 1430735334,
"platformId": 5,
"platformName": "web",
"status": 1
},
{
"createTime": 1430300615,
"platformFlag": "iphone",
"platformId": 1,
"platformName": "yohoApp",
"status": 1
}
]
},
"md5": "f01bdc91842f4255acf31ea4dd61f3ac",
"message": "操作成功"
}
... ...
标签管理接口服务定义
---------------------
## 标签列表查询
> 接口名: '/guang/tags/getList'
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|tagName|String|运动|标签名称|
|classifyId|int|1|分类名称|
|isHot|int|1|是否热门|
---------------------
### 返回
``` json
{
"code":200,
"message":"操作成功",
"data": {
"list": [
{
"id": "1", //标签ID
"tagName": "运动", //标签名称
"classifyId": "2", //分类ID
"isHot": "1", //是否热门,0非热门,1热门
"status": "1", //状态,0关闭,1开启
"createTime": "1432113792"//创建时间
}
]
}
}
```
## 添加标签接口
> 接口名: '/guang/tags/addTag'
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|tagName|String|运动|标签名称|
|classifyId|int|1|分类ID|
|isHot|int|1|是否热门|
|status|int|1|是否启用|
---------------------
### 返回
``` json
{
"code":200,
"message":"添加成功!"
}
```
## 编辑标签接口
> 接口名: '/guang/tags/updateTag'
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|id|int|1|标签ID|
|tagName|String|运动|标签名称|
|classifyId|int|1|分类ID|
|isHot|int|1|是否热门|
|status|int|1|是否启用|
---------------------
### 返回
``` json
{
"code":200,
"message":"修改成功!"
}
```
## 编辑时标签详情接口
> 接口名: '/guang/tags/getDetail'
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|id|int|1|标签id|
---------------------
### 返回
``` json
{
"code":200,
"message":"操作成功",
"data": {
"id": "1", //标签ID
"tagName": "运动", //标签名称
"classifyId": "2", //分类ID
"isHot": "1", //是否热门,0非热门,1热门
"status": "1", //状态,0关闭,1开启
"createTime": "1432113792"//创建时间
}
}
```
## 删除标签接口
> 接口名: '/guang/tags/delTag'
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|id|int|1|标签id|
---------------------
### 返回
``` json
{
"code":200,
"message":"删除成功!"
}
```
## 新增或编辑时获取标签分类列表
> 接口名: '/guang/tagSort/getTagItems'
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|status|int|1|开启状态的分类|
---------------------
### 返回
``` json
{
"code":200,
"message":"操作成功",
"data": [
{
"id": "1",
"text":"搭配风格"
}
]
}
```
\ No newline at end of file
... ...
作者管理接口服务定义
---------------------
## 作者列表查询
> 接口名: '/guang/author/getList'
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|page|int|2|页码|
|size|int|20|每页条数|
---------------------
### 返回
``` json
{
"code":200,
"message":"操作成功",
"data": {
"list": [
{
"uid": "8168248", //作者id
"username": "DREAMER", //作者名称
"avatar":"http://img12.static.yhbimg.com/yhb-img02/2015/12/14/08/0254c49772ec7f5ea99b632c95cf500cb1.jpg?imageView/{mode}/w/{width}/h/{height}", //作者头像
"authorDesc": "潮流初学者", //作者描述
"createTime": "1450081680" //创建时间
}
]
}
}
```
## 添加作者接口
> 接口名: '/guang/author/addAuthor'
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|username|String|搭配风格|作者名称|
|avatar|String|http://img11.static.yhbimg.com/yhb-img02/2015/10/09/08/0188c0c1deaef401e66331c82feeef962e.jpg|作者头像|
|authorDesc|String|潮流初学者|作者描述|
---------------------
### 返回
``` json
{
"code":200,
"message":"添加成功!"
}
```
## 编辑作者接口
> 接口名: '/guang/author/updateAuthor'
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|uid|int|8168248|作者id|
|username|String|搭配风格|作者名称|
|avatar|String|http://img11.static.yhbimg.com/yhb-img02/2015/10/09/08/0188c0c1deaef401e66331c82feeef962e.jpg|作者头像|
|authorDesc|String|潮流初学者|作者描述|
---------------------
### 返回
``` json
{
"code":200,
"message":"修改成功!"
}
```
## 编辑时作者详情接口
> 接口名: '/guang/author/getDetail'
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|uid|int|8168253|作者id|
---------------------
### 返回
``` json
{
"code":200,
"message":"操作成功",
"data": {
"uid": "8168248", //作者id
"username": "DREAMER", //作者姓名
"avatar":"http://img12.static.yhbimg.com/yhb-img02/2015/12/14/08/0254c49772ec7f5ea99b632c95cf500cb1.jpg?imageView/{mode}/w/{width}/h/{height}", //作者头像
"authorDesc": "潮流初学者", //作者描述
"createTime": "1450081680" //创建时间
}
}
```
## 删除作者接口
> 接口名: '/guang/author/delAuthor'
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|uid|int|8168253|作者id|
---------------------
### 返回
``` json
{
"code":200,
"message":"删除成功!"
}
```
```
\ No newline at end of file
... ...
# 产品尺码测量管理
---------------------
## 查询产品尺码列表信息
> 接口名:`productSize/queryProdSizeList`
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|productSkn|int|234234|产品skn |
|brandId|int|23423| 品牌id|
|productSku|int|234234| 产品sku|
|maxSortId|int|223| 产品大类id|
|arriveStartTime|int|13555322333| 到货开始时间|
|arriveEndTime|int|13655322333| 到货开始时间|
|hasMeasure|int|1| 1 已测量 0 未测量 2 测量不全|
---------------------
---------------------
### 返回
``` json
请求样例:
{
"productSkn": 133233
}
正常返回:
{
"code": 200,
"data": {
"list": [
{
"brandId": 106,
"brandName": "outerspace",
"expectArrivalTime": 0,
"gender": "1",
"genderName": "男",
"id": 147157,
"productId": 147157,
"productName": "outerspace 小丑LOGO波点圆舞曲卫衣",
"productSizeReferenceList": [
{
"gender": 1,
"id": 3,
"productSkn": 51088104,
"referenceName": "175/92A",
"sizeId": 201,
"sizeName": "L"
},
{
"gender": 1,
"id": 5,
"productSkn": 51088104,
"referenceName": "170/88A",
"sizeId": 203,
"sizeName": "M"
},
{
"gender": 1,
"id": 7,
"productSkn": 51088104,
"referenceName": "165/84A",
"sizeId": 207,
"sizeName": "S"
},
{
"gender": 1,
"id": 9,
"productSkn": 51088104,
"referenceName": "180/96A",
"sizeId": 211,
"sizeName": "XL"
}
],
"productSkn": 51088104,
"productType": "男生\r\n服配\r\n靴子\r\n",
"sizeRelationsList": [
{
"id": 1829591,
"productSkn": 51088104,
"sizeAttributeId": 4,
"sizeAttributeName": "胸围",
"sizeId": 207,
"sizeName": "S",
"sizeValue": "96"
},
{
"id": 1829593,
"productSkn": 51088104,
"sizeAttributeId": 48,
"sizeAttributeName": "前衣长",
"sizeId": 207,
"sizeName": "S",
"sizeValue": "63"
},
{
"id": 1829595,
"productSkn": 51088104,
"sizeAttributeId": 49,
"sizeAttributeName": "后衣长",
"sizeId": 207,
"sizeName": "S",
"sizeValue": "63"
},
{
"id": 1829597,
"productSkn": 51088104,
"sizeAttributeId": 4,
"sizeAttributeName": "胸围",
"sizeId": 201,
"sizeName": "L",
"sizeValue": "104"
},
{
"id": 1829599,
"productSkn": 51088104,
"sizeAttributeId": 48,
"sizeAttributeName": "前衣长",
"sizeId": 201,
"sizeName": "L",
"sizeValue": "68"
},
{
"id": 1829601,
"productSkn": 51088104,
"sizeAttributeId": 49,
"sizeAttributeName": "后衣长",
"sizeId": 201,
"sizeName": "L",
"sizeValue": "68"
},
{
"id": 1829603,
"productSkn": 51088104,
"sizeAttributeId": 4,
"sizeAttributeName": "胸围",
"sizeId": 211,
"sizeName": "XL",
"sizeValue": "110"
},
{
"id": 1829605,
"productSkn": 51088104,
"sizeAttributeId": 48,
"sizeAttributeName": "前衣长",
"sizeId": 211,
"sizeName": "XL",
"sizeValue": "71"
},
{
"id": 1829607,
"productSkn": 51088104,
"sizeAttributeId": 49,
"sizeAttributeName": "后衣长",
"sizeId": 211,
"sizeName": "XL",
"sizeValue": "71"
},
{
"id": 1833265,
"productSkn": 51088104,
"sizeAttributeId": 4,
"sizeAttributeName": "胸围",
"sizeId": 203,
"sizeName": "M",
"sizeValue": "98"
},
{
"id": 1833267,
"productSkn": 51088104,
"sizeAttributeId": 48,
"sizeAttributeName": "前衣长",
"sizeId": 203,
"sizeName": "M",
"sizeValue": "66"
},
{
"id": 1833269,
"productSkn": 51088104,
"sizeAttributeId": 49,
"sizeAttributeName": "后衣长",
"sizeId": 203,
"sizeName": "M",
"sizeValue": "66"
}
]
}
],
"page": 1,
"size": 10,
"total": 1,
"totalPage": 1
},
"md5": "7fc9a2878e1861ea3df3a2d5d3a2fe2b",
"message": "产品测量信息列表"
}
异常返回:
{
"code": 405,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": ""
}
```
## 查询产品应该要测量的属性列表
> 接口名:`productSize/queryAllProdMeasureInfo``
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|productSkn|int|526456456|产品skn 必传 |
---------------------
### 返回
``` json
请求样例: 新增
{ "productSkn":234234234
}
返回
{
"code": 200,
"data": [
{
"productSkn": 50000057,
"sizeAttributeId": 1,
"sizeAttributeName": "后中长134567",
"sizeId": 203,
"sizeName": "M"
},
{
"productSkn": 50000057,
"sizeAttributeId": 1,
"sizeAttributeName": "后中长134567",
"sizeId": 203,
"sizeName": "M"
},
{
"productSkn": 50000057,
"sizeAttributeId": 3,
"sizeAttributeName": "肩宽",
"sizeId": 207,
"sizeName": "S"
},
{
"productSkn": 50000057,
"sizeAttributeId": 4,
"sizeAttributeName": "胸围",
"sizeId": 203,
"sizeName": "M"
},
{
"productSkn": 50000057,
"sizeAttributeId": 49,
"sizeAttributeName": "后衣长",
"sizeId": 203,
"sizeName": "M"
},
{
"productSkn": 50000057,
"sizeAttributeId": 49,
"sizeAttributeName": "后衣长",
"sizeId": 203,
"sizeName": "M"
},
{
"productSkn": 50000057,
"sizeAttributeId": 49,
"sizeAttributeName": "后衣长",
"sizeId": 207,
"sizeName": "S"
}
],
"md5": "5d0a55a6b686197bf41658a16cbef4fd",
"message": ""
}
```
## 新增或修改产品尺码测量
> 接口名:`productSize/saveProdSizeInfo`
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|productSkn|int|234234|产品skn |
|sizeInfoList|array| [ {"productSkn":50000057, "sizeId":207,"sizeAttributeId":48,"sizeValue":"555", "isMeasure":0 }]| 尺码测量属性|
|productSizeReferList|array| [ { "sizeId":207,"gender":1, "referenceName":"170/80A"}]|参考尺码属性|
---------------------
### 返回
``` json
请求样例: 新增
{
"productSkn":50000057,
"sizeInfoList":
[ {"productSkn":50000057,
"sizeId":207,
"sizeAttributeId":48,
"sizeValue":"555",
"isMeasure":0
}
],
"productSizeReferList":
[ {
"sizeId":207,
"gender":1,
"referenceName":"170/80A"
}
]
}
返回
{
"code": 200,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "新增产品信息成功"
}
```
# 产品尺码测量管理
---------------------
## 查询产品尺码列表信息
> 接口名:`productSize/queryProdSizeList`
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|productSkn|int|234234|产品skn |
|brandId|int|23423| 品牌id|
|productSku|int|234234| 产品sku|
|maxSortId|int|223| 产品大类id|
|arriveStartTime|int|13555322333| 到货开始时间|
|arriveEndTime|int|13655322333| 到货开始时间|
|isMeasure|string|1| Y 已测量 N 未测量 |
---------------------
---------------------
### 返回
``` json
请求样例:
{
"productSkn": 133233
}
正常返回:
{
"code": 200,
"data": {
"list": [
{
"brandId": 106,
"brandName": "outerspace",
"expectArrivalTime": 0,
"gender": "1",
"genderName": "男",
"id": 147157,
"productId": 147157,
"productName": "outerspace 小丑LOGO波点圆舞曲卫衣",
"productSizeReferenceList": [
{
"gender": 1,
"id": 3,
"productSkn": 51088104,
"referenceName": "175/92A",
"sizeId": 201,
"sizeName": "L"
},
{
"gender": 1,
"id": 5,
"productSkn": 51088104,
"referenceName": "170/88A",
"sizeId": 203,
"sizeName": "M"
},
{
"gender": 1,
"id": 7,
"productSkn": 51088104,
"referenceName": "165/84A",
"sizeId": 207,
"sizeName": "S"
},
{
"gender": 1,
"id": 9,
"productSkn": 51088104,
"referenceName": "180/96A",
"sizeId": 211,
"sizeName": "XL"
}
],
"productSkn": 51088104,
"productType": "男生\r\n服配\r\n靴子\r\n",
"sizeRelationsList": [
{
"prdSizeAttributeBoList": [
{
"sizeAttributeId": 1,
"sizeAttributeName": "后中长134567"
},
{
"sizeAttributeId": 3,
"sizeAttributeName": "肩宽"
},
{
"sizeAttributeId": 4,
"sizeAttributeName": "胸围",
"sizeValue": "110"
},
{
"sizeAttributeId": 5,
"sizeAttributeName": "袖长"
},
{
"sizeAttributeId": 48,
"sizeAttributeName": "前衣长",
"sizeValue": "71"
},
{
"sizeAttributeId": 49,
"sizeAttributeName": "后衣长",
"sizeValue": "71"
}
],
"sizeId": 211,
"sizeName": "XL"
},
{
"prdSizeAttributeBoList": [
{
"sizeAttributeId": 1,
"sizeAttributeName": "后中长134567"
},
{
"sizeAttributeId": 3,
"sizeAttributeName": "肩宽"
},
{
"sizeAttributeId": 4,
"sizeAttributeName": "胸围",
"sizeValue": "104"
},
{
"sizeAttributeId": 5,
"sizeAttributeName": "袖长"
},
{
"sizeAttributeId": 48,
"sizeAttributeName": "前衣长",
"sizeValue": "68"
},
{
"sizeAttributeId": 49,
"sizeAttributeName": "后衣长",
"sizeValue": "68"
}
],
"sizeId": 201,
"sizeName": "L"
},
{
"prdSizeAttributeBoList": [
{
"sizeAttributeId": 1,
"sizeAttributeName": "后中长134567"
},
{
"sizeAttributeId": 3,
"sizeAttributeName": "肩宽"
},
{
"sizeAttributeId": 4,
"sizeAttributeName": "胸围",
"sizeValue": "98"
},
{
"sizeAttributeId": 5,
"sizeAttributeName": "袖长"
},
{
"sizeAttributeId": 48,
"sizeAttributeName": "前衣长",
"sizeValue": "66"
},
{
"sizeAttributeId": 49,
"sizeAttributeName": "后衣长",
"sizeValue": "66"
}
],
"sizeId": 203,
"sizeName": "M"
},
{
"prdSizeAttributeBoList": [
{
"sizeAttributeId": 1,
"sizeAttributeName": "后中长134567"
},
{
"sizeAttributeId": 3,
"sizeAttributeName": "肩宽"
},
{
"sizeAttributeId": 4,
"sizeAttributeName": "胸围",
"sizeValue": "96"
},
{
"sizeAttributeId": 5,
"sizeAttributeName": "袖长"
},
{
"sizeAttributeId": 48,
"sizeAttributeName": "前衣长",
"sizeValue": "63"
},
{
"sizeAttributeId": 49,
"sizeAttributeName": "后衣长",
"sizeValue": "63"
}
],
"sizeId": 207,
"sizeName": "S"
}
]
}
],
"page": 1,
"size": 10,
"total": 1,
"totalPage": 1
},
"md5": "ff48e582cdb6473ff750aa2d4518f412",
"message": "产品测量信息列表"
}
异常返回:
{
"code": 405,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": ""
}
```
## 查询产品应该要测量的属性列表
> 接口名:`productSize/queryAllProdMeasureInfo``
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|productSkn|int|526456456|产品skn 必传 |
---------------------
### 返回
``` json
请求样例: 新增
{ "productSkn":234234234
}
返回
{
"code": 200,
"data": [
{
"productSkn": 50000057,
"sizeAttributeId": 1,
"sizeAttributeName": "后中长134567",
"sizeId": 203,
"sizeName": "M"
},
{
"productSkn": 50000057,
"sizeAttributeId": 1,
"sizeAttributeName": "后中长134567",
"sizeId": 203,
"sizeName": "M"
},
{
"productSkn": 50000057,
"sizeAttributeId": 3,
"sizeAttributeName": "肩宽",
"sizeId": 207,
"sizeName": "S"
},
{
"productSkn": 50000057,
"sizeAttributeId": 4,
"sizeAttributeName": "胸围",
"sizeId": 203,
"sizeName": "M"
},
{
"productSkn": 50000057,
"sizeAttributeId": 49,
"sizeAttributeName": "后衣长",
"sizeId": 203,
"sizeName": "M"
},
{
"productSkn": 50000057,
"sizeAttributeId": 49,
"sizeAttributeName": "后衣长",
"sizeId": 203,
"sizeName": "M"
},
{
"productSkn": 50000057,
"sizeAttributeId": 49,
"sizeAttributeName": "后衣长",
"sizeId": 207,
"sizeName": "S"
}
],
"md5": "5d0a55a6b686197bf41658a16cbef4fd",
"message": ""
}
```
## 新增或修改产品尺码测量
> 接口名:`productSize/saveProdSizeInfo`
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|productSkn|int|234234|产品skn |
|sizeInfoList|array| [ {"productSkn":50000057, "sizeId":207,"sizeAttributeId":48,"sizeValue":"555", "isMeasure":0 }]| 尺码测量属性|
|productSizeReferList|array| [ { "sizeId":207,"gender":1, "referenceName":"170/80A"}]|参考尺码属性|
---------------------
### 返回
``` json
请求样例: 新增
{
"productSkn":50000057,
"sizeInfoList":
[ {"productSkn":50000057,
"sizeId":207,
"sizeAttributeId":48,
"sizeValue":"555",
"isMeasure":0
}
],
"productSizeReferList":
[ {
"sizeId":207,
"gender":1,
"referenceName":"170/80A"
}
]
}
返回
{
"code": 200,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "新增产品信息成功"
}
```
... ...
# 店铺装修接口
## 保存店铺装修系信息
> POST `/ShopsDecoratorRest/saveShopsDecorator`
### 入参
```json
{
"shopsId":1,
"platform": "APP",
"templateName": "BASE",
"resources": [
{
"id":7,
"name": "shopTopBanner",
"data": {
"src": "http://img10.static.yhbimg.com/taobaocms/2016/01/25/12/0155598441256e46ec285a8ea64e762394.png",
"isShowShopName": "Y"
}
},
{
"id":8,
"name": "productDetailTopBanner",
"data": {
"src": "http://img10.static.yhbimg.com/taobaocms/2016/01/25/12/015}5598441256e46ec285a8ea64e762394.png"
}
},
{
"id":9,
"name": "oneRowTwoColImages",
"data": [
{
"position": 1,
"src": "http://img10.static.yhbimg.com/taobaocms/2016/01/25/12/0155598441256e46ec285a8ea64e762394.png",
"url": {},
"startTime": 1309514897,
"endTime": 1309514967,
"publishStatus": 0
}
]
},
{
"id":10,
"name": "hotProducts",
"data": [
50000881,
50000882,
50000883,
50000884,
50000885,
50000886,
50000887,
50000888
]
}
]
}
```
|参数名 |必填 |类型 |示例值 |描述 |
|------ |---- |---- |------ |---- |
|shopsId |是 |int |1 |店铺编号 |
|platform |否 |string |APP |平台名称 |
|templateName|否 |string |BASE |模板名称 |
|resources |否 |json | |资源 |
#### 资源描述-店铺头部横幅
|参数名 |必填 |类型 |示例值 |描述 |
|------ |---- |---- |------ |---- |
|id |否 |int |7 |资源编号 |
|name |是 |string |shopTopBanner |资源名称 |
|data |是 |json | |资源内容 |
|src |是 |string |http://img10.static.yhbimg.com/taobaocms/2016/01/25/12/0155598441256e46ec285a8ea64e762394.png|店铺头部横幅图片|
|isShowShopName |否 |string |Y |是否显示店铺名称|
#### 资源描述-商品详情头部横幅
|参数名 |必填 |类型 |示例值 |描述 |
|------ |---- |---- |------ |---- |
|id |否 |int |8 |资源编号 |
|name |是 |string |productDetailTopBanner |资源名称 |
|data |是 |json | |资源内容 |
|src |是 |string |http://img10.static.yhbimg.com/taobaocms/2016/01/25/12/0155598441256e46ec285a8ea64e762394.png|商品详情头部横幅图片|
### 返回
```json
{
"code": 200,
"message": "操作成功",
"data":{
"id":1,
"platform":"APP",
"templateName":"BASE",
"resources":[]
}
}
```
|参数名 |必填 |类型 |示例值 |描述 |
|------ |---- |---- |------ |---- |
|id |是 |int |1 |店铺装修编号 |
|platform |是 |string |APP |平台名称 |
|templateName|是 |string |BASE |模板名称 |
|resources |是 |json | |资源 |
## 查询店铺装修信息
> POST `/ShopsDecoratorRest/findShopsDecorator`
### 入参
```json
{
"page":1,
"size":20,
"shopsId":1,
"checkStatus": 100,
"supplierId": 1,
"brandId": 1
}
```
|参数名 |必填 |类型 |示例值 |描述 |
|------ |---- |---- |------ |---- |
|page |否 |int |1 |页数 |
|size |否 |int |20 |每页大小 |
|shopsId |否 |int |1 |店铺编号 |
|checkStatus |否 |int |100 |审核状态 |
|supplierId |否 |int |1 |供应商编号 |
|brandId |否 |int |1 |品牌编号 |
### 返回
```json
{
"code": 200,
"message": "操作成功",
"data":{
"page":1,
"size":20,
"total":101,
"totalPage":6,
"list":[{
"id":1,
"shopsId":1,
"shopsName":"T.U.K",
"checkStatus":100,
"createTime":1454551897,
"updateTime":1454551897,
"status":1,
"brands":[{
"id":517,
"brandName":"T.U.K",
"brandNameCn":"",
"brandNameEn":"T.U.K"
}]
}]
}
}
```
|参数名 |必填 |类型 |示例值 |描述 |
|------ |---- |---- |------ |---- |
|page |是 |int |1 |页数 |
|size |是 |int |20 |每页大小 |
|total |是 |int |1 |总记录数 |
|totalPage |是 |int |100 |总页数 |
|list |是 |json | |店铺装修信息 |
|id |否 |int |1 |店铺装修编号 |
|shopsId |是 |int |1 |店铺编号 |
|shopsName |是 |string |T.U.K |店铺名称 |
|checkStatus |否 |int |100 |店铺装修审核状态|
|createTime |否 |int |1454551897 |店铺创建时间 |
|updateTime |否 |int |1454551897 |店铺更新时间 |
|status |否 |int |1 |店铺装修状态 |
|brands |否 |json | |品牌信息 |
|id |否 |int |517 |品牌编号 |
|brandName |否 |string |T.U.K |品牌名称 |
|brandNameCn |否 |string | |品牌中文名称 |
|brandNameEn |否 |string |T.U.K |品牌英文名称 |
## 查询店铺装修详细信息
> POST `/ShopsDecoratorRest/findShopsDecoratorDetail`
### 入参
```json
{
"id":2,
"platform": "APP",
"templateName": "BASE"
}
```
|参数名 |必填 |类型 |示例值 |描述 |
|------ |---- |---- |------ |---- |
|id |是 |int |1 |页数 |
|platform |否 |string |APP |平台名称(默认:APP) |
|templateName|否 |string |BASE |模板名称(默认:启用的模板)|
### 返回
```json
{
"code": 200,
"message": "操作成功",
"data":{
"id":1,
"platform":"APP",
"templateName":"BASE",
"resources":[]
}
}
```
|参数名 |必填 |类型 |示例值 |描述 |
|------ |---- |---- |------ |---- |
|id |是 |int |1 |店铺装修编号 |
|platform |是 |string |APP |平台名称 |
|templateName|是 |string |BASE |模板名称 |
|resources |是 |json | |资源 |
## 查询店铺装修待审核信息
> POST `/ShopsDecoratorRest/findAuditShopsDecorator`
### 入参
```json
{
"shopsId":21,
"brandId":0,
"checkStatus":200,
}
```
|参数名 |必填 |类型 |示例值 |描述 |
|------ |---- |---- |------ |---- |
|shopsId |是 |int |21 |店铺编号 |
|brandId |是 |int |0 |品牌编号 |
|checkStatus |否 |int |200 |店铺装修审核状态 |
### 返回
```json
{
"code": 200,
"data":
{
"list":
[
{
"brands":
[
{
"brandDomain": "qianjun",
"brandName": "钱军1",
"brandNameCn": "",
"brandNameEn": "qianjun",
"id": 1470,
"status": 1
}
],
"checkStatus": 200,
"createTime": 1445909754,
"id": 1,
"shopsId": 21,
"shopsName": "jnby by JNBY",
"status": 0,
"updateTime": 1456128116
},
{
"brands":
[
{
"brandDomain": "qianjun",
"brandName": "钱军1",
"brandNameCn": "",
"brandNameEn": "qianjun",
"id": 1470,
"status": 1
}
],
"checkStatus": 100,
"createTime": 1445909754,
"id": 2,
"shopsId": 21,
"shopsName": "jnby by JNBY",
"status": 0,
"updateTime": 1456128116
},
{
"brands":
[
{
"brandDomain": "qianjun",
"brandName": "钱军1",
"brandNameCn": "",
"brandNameEn": "qianjun",
"id": 1470,
"status": 1
}
],
"checkStatus": 200,
"createTime": 1445909754,
"id": 3,
"shopsId": 21,
"shopsName": "jnby by JNBY",
"status": 0,
"updateTime": 1456128116
}
],
"page": 1,
"size": 10,
"total": 3,
"totalPage": 1
},
"message": "操作成功"
}
```
|参数名 |必填 |类型 |示例值 |描述 |
|------ |---- |---- |------ |---- |
|id |是 |int |3 |店铺装修编号 |
|shopsId |是 |int |21 |shopsId |
|shopsName |是 |string |jnby by JNBY |店铺名称 |
|status |是 |int |0 |店铺装修状态 |
|checkStatus |是 |int |200 |店铺装修审核状态 |
|createTime |是 |int |1445909754 |店铺装修创建时间 |
|updateTime |是 |int |1456128116 |店铺装修更新时间 |
|brands |否 |json | |品牌信息 |
|id |否 |int |517 |品牌编号 |
|brandName |否 |string |T.U.K |品牌名称 |
|brandNameCn |否 |string | |品牌中文名称 |
|brandNameEn |否 |string |T.U.K |品牌英文名称 |
|status |否 |int |1 |品牌开启状态 |
|brandDomain |否 |string |T.U.K |品牌主域名 |
## 店铺装修审核
> POST `/ShopsDecoratorRest/auditShopsDecorator`
### 入参
```json
{
"id":10,
"checkStatus":200
}
```
|参数名 |必填 |类型 |示例值 |描述 |
|------ |---- |---- |------ |---- |
|id |是 |int |10 |店铺装修编号 |
|checkStatus |否 |int |200 |店铺装修审核状态 |
### 返回
```json
{
"code": 200,
"data":[],
"md5": "d751713988987e9331980363e24189ce",
"message": "操作成功."
}
# 店铺装修接口
## 保存店铺装修系信息
> POST `/ShopsDecoratorRest/saveShopsDecorator`
### 入参
```json
{
"shopsId":1,
"platform": "APP",
"templateName": "BASE",
"resources": [
{
"id":7,
"name": "shopTopBanner",
"data": {
"src": "http://img10.static.yhbimg.com/taobaocms/2016/01/25/12/0155598441256e46ec285a8ea64e762394.png",
"isShowShopName": "Y"
}
},
{
"id":8,
"name": "productDetailTopBanner",
"data": {
"src": "http://img10.static.yhbimg.com/taobaocms/2016/01/25/12/015}5598441256e46ec285a8ea64e762394.png"
}
},
{
"id":9,
"name": "oneRowTwoColImages",
"data": [
{
"position": 1,
"src": "http://img10.static.yhbimg.com/taobaocms/2016/01/25/12/0155598441256e46ec285a8ea64e762394.png",
"url": {},
"startTime": 1309514897,
"endTime": 1309514967,
"publishStatus": 0
}
]
},
{
"id":10,
"name": "hotProducts",
"data": [
50000881,
50000882,
50000883,
50000884,
50000885,
50000886,
50000887,
50000888
]
}
]
}
```
|参数名 |必填 |类型 |示例值 |描述 |
|------ |---- |---- |------ |---- |
|shopsId |是 |int |1 |店铺编号 |
|platform |否 |string |APP |平台名称 |
|templateName|否 |string |BASE |模板名称 |
|resources |否 |json | |资源 |
#### 资源描述-店铺头部横幅
|参数名 |必填 |类型 |示例值 |描述 |
|------ |---- |---- |------ |---- |
|id |否 |int |7 |资源编号 |
|name |是 |string |shopTopBanner |资源名称 |
|data |是 |json | |资源内容 |
|src |是 |string |http://img10.static.yhbimg.com/taobaocms/2016/01/25/12/0155598441256e46ec285a8ea64e762394.png|店铺头部横幅图片|
|isShowShopName |否 |string |Y |是否显示店铺名称|
#### 资源描述-商品详情头部横幅
|参数名 |必填 |类型 |示例值 |描述 |
|------ |---- |---- |------ |---- |
|id |否 |int |8 |资源编号 |
|name |是 |string |productDetailTopBanner |资源名称 |
|data |是 |json | |资源内容 |
|src |是 |string |http://img10.static.yhbimg.com/taobaocms/2016/01/25/12/0155598441256e46ec285a8ea64e762394.png|商品详情头部横幅图片|
### 返回
```json
{
"code": 200,
"message": "操作成功",
"data":{
"id":1,
"platform":"APP",
"templateName":"BASE",
"resources":[]
}
}
```
|参数名 |必填 |类型 |示例值 |描述 |
|------ |---- |---- |------ |---- |
|id |是 |int |1 |店铺装修编号 |
|platform |是 |string |APP |平台名称 |
|templateName|是 |string |BASE |模板名称 |
|resources |是 |json | |资源 |
## 查询店铺装修信息
> POST `/ShopsDecoratorRest/findShopsDecorator`
### 入参
```json
{
"page":1,
"size":20,
"shopsId":1,
"checkStatus": 100,
"supplierId": 1,
"brandId": 1
}
```
|参数名 |必填 |类型 |示例值 |描述 |
|------ |---- |---- |------ |---- |
|page |否 |int |1 |页数 |
|size |否 |int |20 |每页大小 |
|shopsId |否 |int |1 |店铺编号 |
|checkStatus |否 |int |100 |审核状态 |
|supplierId |否 |int |1 |供应商编号 |
|brandId |否 |int |1 |品牌编号 |
### 返回
```json
{
"code": 200,
"message": "操作成功",
"data":{
"page":1,
"size":20,
"total":101,
"totalPage":6,
"list":[{
"id":1,
"shopsId":1,
"shopsName":"T.U.K",
"checkStatus":100,
"createTime":1454551897,
"updateTime":1454551897,
"status":1,
"brands":[{
"id":517,
"brandName":"T.U.K",
"brandNameCn":"",
"brandNameEn":"T.U.K"
}]
}]
}
}
```
|参数名 |必填 |类型 |示例值 |描述 |
|------ |---- |---- |------ |---- |
|page |是 |int |1 |页数 |
|size |是 |int |20 |每页大小 |
|total |是 |int |1 |总记录数 |
|totalPage |是 |int |100 |总页数 |
|list |是 |json | |店铺装修信息 |
|id |否 |int |1 |店铺装修编号 |
|shopsId |是 |int |1 |店铺编号 |
|shopsName |是 |string |T.U.K |店铺名称 |
|checkStatus |否 |int |100 |店铺装修审核状态|
|createTime |否 |int |1454551897 |店铺创建时间 |
|updateTime |否 |int |1454551897 |店铺更新时间 |
|status |否 |int |1 |店铺装修状态 |
|brands |否 |json | |品牌信息 |
|id |否 |int |517 |品牌编号 |
|brandName |否 |string |T.U.K |品牌名称 |
|brandNameCn |否 |string | |品牌中文名称 |
|brandNameEn |否 |string |T.U.K |品牌英文名称 |
## 查询店铺装修详细信息
> POST `/ShopsDecoratorRest/findShopsDecoratorDetail`
### 入参
```json
{
"id":2,
"platform": "APP",
"templateName": "BASE"
}
```
|参数名 |必填 |类型 |示例值 |描述 |
|------ |---- |---- |------ |---- |
|id |是 |int |1 |页数 |
|platform |否 |string |APP |平台名称(默认:APP) |
|templateName|否 |string |BASE |模板名称(默认:启用的模板)|
### 返回
```json
{
"code": 200,
"message": "操作成功",
"data":{
"id":1,
"platform":"APP",
"templateName":"BASE",
"resources":[]
}
}
```
|参数名 |必填 |类型 |示例值 |描述 |
|------ |---- |---- |------ |---- |
|id |是 |int |1 |店铺装修编号 |
|platform |是 |string |APP |平台名称 |
|templateName|是 |string |BASE |模板名称 |
|resources |是 |json | |资源 |
## 查询店铺装修待审核信息
> POST `/ShopsDecoratorRest/findAuditShopsDecorator`
### 入参
```json
{
"brandId":1026,
"supplierId":1090
"checkStatus":200,
}
```
|参数名 |必填 |类型 |示例值 |描述 |
|------ |---- |---- |------ |---- |
|supplierId |否 |int |1090 |供应商编号 |
|brandId |否 |int |1026 |品牌编号 |
|checkStatus |是 |int |200 |店铺装修审核状态 |
### 返回
```json
{
"code": 200,
"data":
{
"list":
[
{
"brands":
[
{
"brandName": "BURANDO ENO",
"brandNameCn": "",
"brandNameEn": "BURANDO ENO",
"id": 519,
"saleType": 1,
"status": 1
}
],
"checkStatus": 100,
"createTime": 1448610631,
"id": 25,
"shopsId": 35,
"shopsName": "BURANDO ENO",
"shopsType": 1,
"status": 0,
"updateTime": 1449036789
},
{
"brands":
[
{
"brandDomain": "jnby",
"brandName": "JNBY",
"brandNameCn": "",
"brandNameEn": "JNBY",
"id": 1026,
"saleType": 1,
"status": 1
}
],
"checkStatus": 100,
"createTime": 1445850968,
"id": 26,
"shopsId": 20,
"shopsName": "JNBY",
"shopsType": 1,
"status": 0,
"updateTime": 1456886841
}
],
"page": 1,
"size": 10,
"total": 2,
"totalPage": 1
},
"message": "操作成功"
}
```
|参数名 |必填 |类型 |示例值 |描述 |
|------ |---- |---- |------ |---- |
|id |是 |int |3 |店铺装修编号 |
|shopsId |是 |int |21 |shopsId |
|shopsName |是 |string |jnby by JNBY |店铺名称 |
|status |是 |int |0 |店铺装修状态 |
|checkStatus |是 |int |200 |店铺装修审核状态 |
|createTime |是 |int |1445909754 |店铺装修创建时间 |
|updateTime |是 |int |1456128116 |店铺装修更新时间 |
|brands |否 |json | |品牌信息 |
|id |否 |int |517 |品牌编号 |
|brandName |否 |string |T.U.K |品牌名称 |
|brandNameCn |否 |string | |品牌中文名称 |
|brandNameEn |否 |string |T.U.K |品牌英文名称 |
|status |否 |int |1 |品牌开启状态 |
|brandDomain |否 |string |T.U.K |品牌主域名 |
## 店铺装修审核
> POST `/ShopsDecoratorRest/auditShopsDecorator`
### 入参
```json
{
"id":10,
"checkStatus":200
}
```
|参数名 |必填 |类型 |示例值 |描述 |
|------ |---- |---- |------ |---- |
|id |是 |int |10 |店铺装修编号 |
|checkStatus |否 |int |200 |店铺装修审核状态 |
### 返回
```json
{
"code": 200,
"data":[],
"md5": "d751713988987e9331980363e24189ce",
"message": "操作成功."
}
```
\ No newline at end of file
... ...