...
|
...
|
@@ -125,4 +125,444 @@ http://127.0.0.1:8088/platform/SellerProductController/getSellerSortInfo?shopsId |
|
|
"message": "查询品类失败:错误信息."
|
|
|
}
|
|
|
|
|
|
```
|
|
|
|
|
|
## 3、品牌经营模式查询##
|
|
|
|
|
|
品牌查询合同判断经营模式选项,如果有一个JIT合同,则经营模式为JIT,否则为代销(/SellerProductController/getSellerBusinessModelType)
|
|
|
|
|
|
#### 请求参数
|
|
|
| 参数名称 | 参数类型 | 可否为空 | 示例 | 备注 |
|
|
|
|:-------| -----:|-----:|-----:|----:|
|
|
|
|shopsId|int|否|店铺id||
|
|
|
|brandId|int|否|22|品牌的ID号|
|
|
|
|
|
|
注意,通用的头部没有列出。
|
|
|
|
|
|
请求示例
|
|
|
http://127.0.0.1:8088/platform/SellerProductController/getSellerBusinessModelType?shopsId=18&brandId=2454
|
|
|
## 请求样例数据
|
|
|
``` json
|
|
|
正常返回:
|
|
|
{
|
|
|
"code": 200,
|
|
|
"data": "JIT",
|
|
|
"md5": "7bbc515cf44a2157ab6c4e3d3f6d94b7",
|
|
|
"message": "查询经营模式成功."
|
|
|
}
|
|
|
|
|
|
{
|
|
|
"code": 200,
|
|
|
"data": "代销",
|
|
|
"md5": "7bbc515cf44a2157ab6c4e3d3f6d94b7",
|
|
|
"message": "查询经营模式成功."
|
|
|
}
|
|
|
|
|
|
异常返回:
|
|
|
|
|
|
{
|
|
|
"code": 400,
|
|
|
"data": [],
|
|
|
"md5": "d751713988987e9331980363e24189ce",
|
|
|
"message": "店铺id错误"
|
|
|
}
|
|
|
|
|
|
{
|
|
|
"code": 500,
|
|
|
"data": [],
|
|
|
"md5": "8b233b3ba501d3563be331aa58d0fe0d",
|
|
|
"message": "查询经营模式:错误信息."
|
|
|
}
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
## 4、查询所有开启的颜色列表##
|
|
|
|
|
|
查询所有开启的颜色列表(/SellerProductController/querySellerProductColors)
|
|
|
|
|
|
#### 请求参数
|
|
|
无
|
|
|
|
|
|
注意,通用的头部没有列出。
|
|
|
|
|
|
请求示例
|
|
|
http://127.0.0.1:8088/platform/SellerProductController/querySellerProductColors
|
|
|
## 请求样例数据
|
|
|
``` json
|
|
|
正常返回:
|
|
|
{
|
|
|
"code": 200,
|
|
|
"data": [{
|
|
|
"colorCode": "68EE68",
|
|
|
"colorName": "黑色",
|
|
|
"colorValue": "",
|
|
|
"createTime": 0,
|
|
|
"id": 2,
|
|
|
"updateTime": 0
|
|
|
},
|
|
|
{
|
|
|
"colorCode": "68EE68",
|
|
|
"colorName": "绿色",
|
|
|
"colorValue": "http://img11.static.yhbimg.com/color/2016/03/02/17/01969293b2c86c1064e8301f647368bed9.png",
|
|
|
"createTime": 0,
|
|
|
"id": 1,
|
|
|
"updateTime": 0
|
|
|
}
|
|
|
],
|
|
|
"md5": "4653921cf0b342fb364c96976cdbf7a4",
|
|
|
"message": "查询颜色列表成功."
|
|
|
}
|
|
|
|
|
|
异常返回:
|
|
|
|
|
|
{
|
|
|
"code": 500,
|
|
|
"data": [],
|
|
|
"md5": "8b233b3ba501d3563be331aa58d0fe0d",
|
|
|
"message": "查询颜色列表错误:错误信息."
|
|
|
}
|
|
|
|
|
|
```
|
|
|
|
|
|
## 5、查询商品图片##
|
|
|
|
|
|
查询商品图片(/SellerProductController/querySellerProductImg)
|
|
|
|
|
|
#### 请求参数
|
|
|
| 参数名称 | 参数类型 | 可否为空 | 示例 | 备注 |
|
|
|
|:-------| -----:|-----:|-----:|----:|
|
|
|
|productSkn|int|否|productSkn||
|
|
|
|
|
|
注意,通用的头部没有列出。
|
|
|
|
|
|
请求示例
|
|
|
http://127.0.0.1:8088/platform/SellerProductController/querySellerProductImg?productSkn=512587800
|
|
|
## 请求样例数据
|
|
|
``` json
|
|
|
正常返回:
|
|
|
{
|
|
|
"code": 200,
|
|
|
"data": [
|
|
|
{
|
|
|
"colorId": 11,
|
|
|
"createTime": 1491984544,
|
|
|
"factoryCode": "ASD005",
|
|
|
"factoryGoodsName": "红色",
|
|
|
"goodsColorImage": "/2017/04/12/16/01a5e0e7e3d9a1cdc0542df59d7f8be489.jpg",
|
|
|
"goodsImagesList": [
|
|
|
{
|
|
|
"angle": 0,
|
|
|
"genderCover": 0,
|
|
|
"id": 1002900,
|
|
|
"imageUrl": "http://img10.static.yhbimg.com/goodsimg/2017/04/12/16/01a5e0e7e3d9a1cdc0542df59d7f8be489.jpg",
|
|
|
"isDefault": "Y",
|
|
|
"orderBy": 0,
|
|
|
"productSkc": 680280,
|
|
|
"productSkn": 512587800,
|
|
|
"status": 1
|
|
|
},
|
|
|
{
|
|
|
"angle": 0,
|
|
|
"genderCover": 1,
|
|
|
"id": 1002902,
|
|
|
"imageUrl": "http://img11.static.yhbimg.com/goodsimg/2017/04/14/10/01230bd0b1607b5cfee0d91d33ec11cb9d.jpg",
|
|
|
"isDefault": "N",
|
|
|
"orderBy": 1,
|
|
|
"productSkc": 680280,
|
|
|
"productSkn": 512587800,
|
|
|
"status": 1
|
|
|
}
|
|
|
],
|
|
|
"goodsName": "红色",
|
|
|
"isDefault": "Y",
|
|
|
"productSkc": 680280,
|
|
|
"productSkn": 512587800,
|
|
|
"updateTime": 1491984544
|
|
|
}
|
|
|
],
|
|
|
"md5": "142f4d004247f904751020d5b348f9e3",
|
|
|
"message": "查询图片信息成功."
|
|
|
}
|
|
|
|
|
|
异常返回:
|
|
|
|
|
|
{
|
|
|
"code": 400,
|
|
|
"data": [],
|
|
|
"md5": "d751713988987e9331980363e24189ce",
|
|
|
"message": "店铺id错误"
|
|
|
}
|
|
|
|
|
|
{
|
|
|
"code": 500,
|
|
|
"data": [],
|
|
|
"md5": "8b233b3ba501d3563be331aa58d0fe0d",
|
|
|
"message": "查询图片信息失败:错误信息."
|
|
|
}
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
## 6、查询品类所有材质##
|
|
|
|
|
|
查询品类所有材质(/SellerProductController/querySellerProductMaterial)
|
|
|
|
|
|
#### 请求参数
|
|
|
| 参数名称 | 参数类型 | 可否为空 | 示例 | 备注 |
|
|
|
|:-------| -----:|-----:|-----:|----:|
|
|
|
|maxSortId|int|否|类别id||
|
|
|
|
|
|
注意,通用的头部没有列出。
|
|
|
|
|
|
请求示例
|
|
|
http://127.0.0.1:8088/platform/SellerProductController/querySellerProductMaterial?maxSortId=1
|
|
|
## 请求样例数据
|
|
|
``` json
|
|
|
正常返回:
|
|
|
{
|
|
|
"code": 200,
|
|
|
"data": {
|
|
|
"attributeId": 1,
|
|
|
"attributeName": "材质",
|
|
|
"attributeValues": "[{\"id\":119,\"name\":\"反光\"},{\"id\":113,\"name\":\"雪纺\"},{\"id\":109,\"name\":\"太空棉\"},{\"id\":79,\"name\":\"丹宁\"},{\"id\":66,\"name\":\"毛呢\"},{\"id\":18,\"name\":\"麻\"},{\"id\":13,\"name\":\"尼龙/锦纶\"},{\"id\":11,\"name\":\"皮革\"},{\"id\":10,\"name\":\"棉\"},{\"id\":9,\"name\":\"羊毛/羊绒\"},{\"id\":6,\"name\":\"涤纶/聚酯纤维\"},{\"id\":2,\"name\":\"PU\"}]",
|
|
|
"categoryId": 1,
|
|
|
"inputType": "checkbox"
|
|
|
},
|
|
|
"md5": "715a830f58d4bf0d884d3b71d4266c96",
|
|
|
"message": "查询品类所有材质成功."
|
|
|
}
|
|
|
异常返回:
|
|
|
|
|
|
{
|
|
|
"code": 400,
|
|
|
"data": [],
|
|
|
"md5": "d751713988987e9331980363e24189ce",
|
|
|
"message": "品类id错误"
|
|
|
}
|
|
|
|
|
|
{
|
|
|
"code": 500,
|
|
|
"data": [],
|
|
|
"md5": "8b233b3ba501d3563be331aa58d0fe0d",
|
|
|
"message": "查询品类所有材质失败:错误信息."
|
|
|
}
|
|
|
|
|
|
```
|
|
|
|
|
|
## 7、查询品类洗涤提示##
|
|
|
|
|
|
查询商品洗涤提示和材质(/SellerProductController/querySellerProductWashTips)
|
|
|
|
|
|
#### 请求参数
|
|
|
| 参数名称 | 参数类型 | 可否为空 | 示例 | 备注 |
|
|
|
|:-------| -----:|-----:|-----:|----:|
|
|
|
|categoryId|int|否|类别id||
|
|
|
|saleType|int|否|销售类型|'1:销售属性 2:非销售属性 3:扩展属性'|
|
|
|
|
|
|
注意,通用的头部没有列出。
|
|
|
|
|
|
请求示例
|
|
|
http://127.0.0.1:8088/platform/SellerProductController/querySellerProductWashTips?categoryId=1&saleType=1
|
|
|
## 请求样例数据
|
|
|
``` json
|
|
|
正常返回:
|
|
|
{
|
|
|
"code": 200,
|
|
|
"data": [
|
|
|
{
|
|
|
"attributeId": 2005,
|
|
|
"attributeName": "洗涤提示",
|
|
|
"attributeValues": "[{\"id\":1,\"name\":\"不可熨烫\"},{\"id\":2,\"name\":\"不可转笼翻转干燥\"},{\"id\":3,\"name\":\"30度水温弱速洗\"},{\"id\":4,\"name\":\"不可氯漂\"},{\"id\":5,\"name\":\"不可干洗\"},{\"id\":6,\"name\":\"不可拧干\"},{\"id\":7,\"name\":\"分色洗涤\"}]",
|
|
|
"inputType": "checkbox"
|
|
|
}
|
|
|
],
|
|
|
"md5": "7b17a66327414bea9b266270e4a875be",
|
|
|
"message": "查询所有洗涤提示成功."
|
|
|
}
|
|
|
异常返回:
|
|
|
|
|
|
{
|
|
|
"code": 400,
|
|
|
"data": [],
|
|
|
"md5": "d751713988987e9331980363e24189ce",
|
|
|
"message": "品类id错误"
|
|
|
}
|
|
|
|
|
|
{
|
|
|
"code": 500,
|
|
|
"data": [],
|
|
|
"md5": "8b233b3ba501d3563be331aa58d0fe0d",
|
|
|
"message": "查询所有洗涤提示失败:错误信息."
|
|
|
}
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
## 8、查询商品洗涤提示和材质##
|
|
|
|
|
|
查询商品洗涤提示和材质(/SellerProductController/selectSellerProductMaterialAndWashTips)
|
|
|
|
|
|
#### 请求参数
|
|
|
| 参数名称 | 参数类型 | 可否为空 | 示例 | 备注 |
|
|
|
|:-------| -----:|-----:|-----:|----:|
|
|
|
|skn|int|否|skn||
|
|
|
|
|
|
注意,通用的头部没有列出。
|
|
|
|
|
|
请求示例
|
|
|
http://127.0.0.1:8088/platform/SellerProductController/selectSellerProductMaterialAndWashTips?skn=512587800
|
|
|
## 请求样例数据
|
|
|
``` json
|
|
|
正常返回:
|
|
|
{
|
|
|
"code": 200,
|
|
|
"data": {
|
|
|
"洗涤提示": [
|
|
|
"[1]"
|
|
|
]
|
|
|
},
|
|
|
"md5": "04b0dfa88619ca6a1a2f74973821880c",
|
|
|
"message": "查询商品洗涤提示和材质成功."
|
|
|
}
|
|
|
异常返回:
|
|
|
|
|
|
{
|
|
|
"code": 400,
|
|
|
"data": [],
|
|
|
"md5": "d751713988987e9331980363e24189ce",
|
|
|
"message": "品类id错误"
|
|
|
}
|
|
|
|
|
|
{
|
|
|
"code": 500,
|
|
|
"data": [],
|
|
|
"md5": "8b233b3ba501d3563be331aa58d0fe0d",
|
|
|
"message": "查询商品洗涤提示和材质失败:错误信息."
|
|
|
}
|
|
|
|
|
|
```
|
|
|
|
|
|
## 9、更新商品图片##
|
|
|
|
|
|
更新商品图片(/SellerProductController/updateSellerProductImg)
|
|
|
|
|
|
#### 请求参数【与网销信息一致】
|
|
|
| 参数名称 | 参数类型 | 可否为空 | 示例 | 备注 |
|
|
|
|:-------| -----:|-----:|-----:|----:|
|
|
|
|goodsImagesReqStr|string|否|图片信息||
|
|
|
|productSkn|int|否|sln||
|
|
|
|sknDefaultImg|string|是|默认图片 ||
|
|
|
|
|
|
注意,通用的头部没有列出。
|
|
|
|
|
|
请求示例
|
|
|
http://127.0.0.1:8088/platform/SellerProductController/updateSellerProductImg?goodsImagesReqStr={"goodsImagesBoList":"[{\"angle\":0,\"genderCover\":0,\"id\":1002976,\"imageUrl\":\"http://img13.static.yhbimg.com/goodsimg/2017/04/18/11/02c52592f14a13be1014aa8c116b5d4e1c.jpg\",\"isDefault\":\"Y\",\"orderBy\":0,\"productSkc\":680416,\"productSkn\":512587896,\"status\":1},{\"angle\":0,\"genderCover\":0,\"id\":1002978,\"imageUrl\":\"http://img12.static.yhbimg.com/goodsimg/2017/04/18/11/028adf5dd962895c11feb2fec8ef0c5b32.jpg\",\"isDefault\":\"Y\",\"orderBy\":0,\"productSkc\":680418,\"productSkn\":512587896,\"status\":1}]","productSkc":680416,"productSkn":512587896}&productSkn=512587896&sknDefaultImg=http://img12.static.yhbimg.com/goodsimg/2017/04/19/10/0261ce267c95a8ac1c55428cd1825876e7.jpg
|
|
|
## 请求样例数据
|
|
|
``` json
|
|
|
正常返回:
|
|
|
{
|
|
|
"code": 200,
|
|
|
"data": [],
|
|
|
"md5": "d751713988987e9331980363e24189ce",
|
|
|
"message": "更新图片信息成功."
|
|
|
}
|
|
|
异常返回:
|
|
|
|
|
|
{
|
|
|
"code": 400,
|
|
|
"data": [],
|
|
|
"md5": "d751713988987e9331980363e24189ce",
|
|
|
"message": "SKN错误"
|
|
|
}
|
|
|
|
|
|
{
|
|
|
"code": 500,
|
|
|
"data": [],
|
|
|
"md5": "8b233b3ba501d3563be331aa58d0fe0d",
|
|
|
"message": "更新图片信息失败:错误信息."
|
|
|
}
|
|
|
|
|
|
```
|
|
|
|
|
|
## 10、新增或更新商品材质##
|
|
|
|
|
|
新增或更新商品材质(/SellerProductController/updateSellerProductMaterial)
|
|
|
|
|
|
#### 请求参数【与网销信息一致】
|
|
|
| 参数名称 | 参数类型 | 可否为空 | 示例 | 备注 |
|
|
|
|:-------| -----:|-----:|-----:|----:|
|
|
|
|attrIds|string|否|材质id逗号隔开||
|
|
|
|skn|int|否|sln||
|
|
|
|
|
|
注意,通用的头部没有列出。
|
|
|
|
|
|
请求示例
|
|
|
http://127.0.0.1:8088/platform/SellerProductController/updateSellerProductMaterial?skn=512587800&attrIds=129,33,8
|
|
|
## 请求样例数据
|
|
|
``` json
|
|
|
正常返回:
|
|
|
{
|
|
|
"code": 200,
|
|
|
"data": 1,
|
|
|
"md5": "c4ca4238a0b923820dcc509a6f75849b",
|
|
|
"message": "新增或更新材质成功."
|
|
|
}
|
|
|
异常返回:
|
|
|
|
|
|
{
|
|
|
"code": 400,
|
|
|
"data": [],
|
|
|
"md5": "d751713988987e9331980363e24189ce",
|
|
|
"message": "SKN错误"
|
|
|
}
|
|
|
|
|
|
{
|
|
|
"code": 500,
|
|
|
"data": [],
|
|
|
"md5": "8b233b3ba501d3563be331aa58d0fe0d",
|
|
|
"message": "新增或更新材质失败:错误信息."
|
|
|
}
|
|
|
|
|
|
```
|
|
|
|
|
|
## 11、新增或更新商品洗涤提示##
|
|
|
|
|
|
新增或更新商品洗涤提示(/SellerProductController/updateSellerProductWashTips)
|
|
|
|
|
|
#### 请求参数【与网销信息一致】
|
|
|
| 参数名称 | 参数类型 | 可否为空 | 示例 | 备注 |
|
|
|
|:-------| -----:|-----:|-----:|----:|
|
|
|
|attrIds|string|否|材质id逗号隔开||
|
|
|
|skn|int|否|sln||
|
|
|
|
|
|
注意,通用的头部没有列出。
|
|
|
|
|
|
请求示例
|
|
|
http://127.0.0.1:8088/platform/SellerProductController/updateSellerProductWashTips?skn=512587800&attrIds=1,2,4,5,6,7
|
|
|
## 请求样例数据
|
|
|
``` json
|
|
|
正常返回:
|
|
|
{
|
|
|
"code": 200,
|
|
|
"data": 1,
|
|
|
"md5": "c4ca4238a0b923820dcc509a6f75849b",
|
|
|
"message": "新增或更新洗涤提示成功."
|
|
|
}
|
|
|
异常返回:
|
|
|
|
|
|
{
|
|
|
"code": 400,
|
|
|
"data": [],
|
|
|
"md5": "d751713988987e9331980363e24189ce",
|
|
|
"message": "SKN错误"
|
|
|
}
|
|
|
|
|
|
{
|
|
|
"code": 500,
|
|
|
"data": [],
|
|
|
"md5": "8b233b3ba501d3563be331aa58d0fe0d",
|
|
|
"message": "新增或更新洗涤提示失败:错误信息."
|
|
|
}
|
|
|
|
|
|
``` |
|
|
\ No newline at end of file |
...
|
...
|
|