|
|
## 1、查询商品VIP列表##
|
|
|
|
|
|
查询商品列表(/sellerVip/queryProductVipList)
|
|
|
查询商品列表(/seller/shareOrder/shareOrderList)
|
|
|
|
|
|
#### 请求参数(默认值都传null)
|
|
|
| 参数名称 | 参数类型 | 可否为空 | 示例 | 备注 |
|
|
|
|:-------| -----:|-----:|-----:|----:|
|
|
|
|shopId|int|否|店铺id||
|
|
|
|productSkn|int|是|productSkn||
|
|
|
|sknFactoryCode|string|是|商家商品编码||
|
|
|
|status|int|否|1:上架,0:下架 8 新建商品|上下架状态|
|
|
|
|skuFactoryCode|string|是|商品条码||
|
|
|
|stock|int|是|库存情况|无库存:0,有库存:1|
|
|
|
|maxSortId|int|是|maxSortId||
|
|
|
|middleSortId|int|是|middleSortId||
|
|
|
|smallSortId|int|是|smallSortId||
|
|
|
|productVipStatus|int|是|2代表关闭 1代表开启||
|
|
|
|productName|string|是|商品名称||
|
|
|
|erpSkuId|int|是|1212|SKU|
|
|
|
|hasImage|int|是|是否有图|0代表无图,1代表有图|
|
|
|
|beginTime|string|是|开始时间|格式2011-02-23 14:45:09|
|
|
|
|endTime|string|是|结束时间|格式2011-02-23 14:45:09|
|
|
|
|brand_id|int|是|品牌id||
|
|
|
|page|int|否|页码||
|
|
|
|size|int|否|每页个数||
|
|
|
|
|
|
注意,通用的头部没有列出。
|
|
|
|
|
|
请求示例
|
|
|
http://127.0.0.1:8088/platform/sellerVip/queryProductVipList
|
|
|
http://127.0.0.1:8088/platform/seller/shareOrder/shareOrderList
|
|
|
## 请求样例数据
|
|
|
``` json
|
|
|
{"shopId" : 792, "page" : 1, "size":2, "productSkn":512588254, "status" : 8, "sknfactoryCode" : "12", "skuFactoryCode" : "2", "stock" :0, "productVipStatus":2, "maxSortId": 1, "middleSortId" :11, "smallSortId": 114}
|
|
|
{"page":1, "size":10, "productName":"简洁设计水洗牛","erpSkuId": "933124","productSkn": "51166910","hasImage":0, "beginTime":"2011-02-23 14:45:09", "endTime":"2017-08-23 14:45:11","shopId":20, "brand_id":1026}
|
|
|
|
|
|
|
|
|
正常返回:
|
|
|
{
|
|
|
"code": 200,
|
|
|
"data": {
|
|
|
"list": [
|
|
|
{
|
|
|
"brandId": 248,
|
|
|
"brandName": "Nike", // 品牌名称
|
|
|
"canOpenFlag": false, // 如果false则列表不展示开启按钮 当店铺id 传 792时,会返回true
|
|
|
"maxSortId": 1,
|
|
|
"maxSortName": "上衣",
|
|
|
"middleSortId": 11,
|
|
|
"middleSortName": "T恤",
|
|
|
"productName": "3131312@",
|
|
|
"productSKN": 512588254,
|
|
|
"productVipStatus": 2, // 1代表开启 2代表关闭
|
|
|
"retailPrice": 12,
|
|
|
"retailPriceStr": "12.00", // 吊牌价
|
|
|
"salesPrice": 1,
|
|
|
"salesPriceStr": "1.00", // 销售价
|
|
|
"smallSortId": 114,
|
|
|
"smallSortName": "T恤",
|
|
|
"status": 0, // 状态 0代表下架 1代表上架 8 新建商品
|
|
|
"stock": 0 // 库存
|
|
|
},
|
|
|
{
|
|
|
"brandId": 248,
|
|
|
"brandName": "Nike",
|
|
|
"canOpenFlag": false,
|
|
|
"maxSortId": 1,
|
|
|
"maxSortName": "上衣",
|
|
|
"middleSortId": 12,
|
|
|
"middleSortName": "衬衫",
|
|
|
"productName": "121341",
|
|
|
"productSKN": 512588248,
|
|
|
"productVipStatus": 2,
|
|
|
"retailPrice": 11,
|
|
|
"retailPriceStr": "11.00",
|
|
|
"salesPrice": 1,
|
|
|
"salesPriceStr": "1.00",
|
|
|
"smallSortId": 114,
|
|
|
"smallSortName": "T恤",
|
|
|
"status": 8,
|
|
|
"stock": 0
|
|
|
}
|
|
|
],
|
|
|
"page": 2,
|
|
|
"size": 2,
|
|
|
"total": 207,
|
|
|
"totalPage": 104
|
|
|
},
|
|
|
"md5": "f8ea19f29a4d3bfe08c30aabe3b5895a",
|
|
|
"message": "成功"
|
|
|
}
|
|
|
|
|
|
异常返回:
|
|
|
|
|
|
{
|
|
|
"code": 500,
|
|
|
"data": [],
|
|
|
"md5": "8b233b3ba501d3563be331aa58d0fe0d",
|
|
|
"message": "NetSale Product List error."
|
|
|
}
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## 2、更新VIP status##
|
|
|
|
|
|
更新VIP status(/sellerVip/batchChangeStatus)
|
|
|
|
|
|
#### 请求参数(默认值都传null)
|
|
|
| 参数名称 | 参数类型 | 可否为空 | 示例 | 备注 |
|
|
|
|:-------| -----:|-----:|-----:|----:|
|
|
|
|shopsId|int|否|店铺id||
|
|
|
|productSknList|数字型数组|否|[1234,456]|单个skn也需要塞到数组中,只是数组中只有一个元素|
|
|
|
|productVipStatus|int|是|2代表关闭 1代表开启||
|
|
|
|
|
|
注意,通用的头部没有列出。
|
|
|
|
|
|
请求示例
|
|
|
http://127.0.0.1:8088/platform/sellerVip/batchChangeStatus
|
|
|
## 请求样例数据
|
|
|
``` json
|
|
|
{"productSknList" : [1234,456], "productVipStatus" : 1}
|
|
|
|
|
|
|
|
|
正常返回:
|
|
|
{
|
|
|
"code": 200,
|
|
|
"data": [],
|
|
|
"md5": "d751713988987e9331980363e24189ce",
|
|
|
"message": "更新成功"
|
|
|
}
|
|
|
|
|
|
|
|
|
异常返回:
|
|
|
|
|
|
{
|
|
|
"code": 30001,
|
|
|
"data": [],
|
|
|
"md5": "d751713988987e9331980363e24189ce",
|
|
|
"message": "系统异常"
|
|
|
"code": 200,
|
|
|
"data": {
|
|
|
"list": [
|
|
|
{
|
|
|
"brandName": "JNBY", // 品牌名
|
|
|
"colorName": "黑色", // 颜色
|
|
|
"content": "zxc12ezx", // 晒单内容
|
|
|
"createTime": "2016-05-17 14:10:15", // 晒单时间
|
|
|
"erpSkuId": "933124", // SKU
|
|
|
"productName": " JNBY 简洁设计水洗牛仔裤",
|
|
|
"productSkn": "51166910",
|
|
|
"sizeName": "S", // 尺码
|
|
|
"url": "" // 晒单图片url
|
|
|
},
|
|
|
{
|
|
|
"brandName": "JNBY",
|
|
|
"colorName": "黑色",
|
|
|
"content": "123zx",
|
|
|
"createTime": "2016-05-17 14:10:11",
|
|
|
"erpSkuId": "933124",
|
|
|
"productName": " JNBY 简洁设计水洗牛仔裤",
|
|
|
"productSkn": "51166910",
|
|
|
"sizeName": "S",
|
|
|
"url": "—"
|
|
|
},
|
|
|
{
|
|
|
"brandName": "JNBY",
|
|
|
"colorName": "黑色",
|
|
|
"content": "zxc",
|
|
|
"createTime": "2016-05-17 14:10:08",
|
|
|
"erpSkuId": "933124",
|
|
|
"productName": " JNBY 简洁设计水洗牛仔裤",
|
|
|
"productSkn": "51166910",
|
|
|
"sizeName": "S",
|
|
|
"url": "—"
|
|
|
}
|
|
|
],
|
|
|
"page": 1,
|
|
|
"size": 10,
|
|
|
"total": 3,
|
|
|
"totalPage": 1
|
|
|
},
|
|
|
"md5": "995b5496ec8eff97a41dc17b1aa04e34",
|
|
|
"message": "晒单列表查询"
|
|
|
}
|
|
|
|
|
|
``` |
|
|
\ No newline at end of file |
...
|
...
|
|