Authored by liqingzhong

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

... ... @@ -303,4 +303,131 @@
"message": "save netSale Recommend success."
}
```
# 展示店铺的数据源
> 接口名: `/ShopsRest/getShopList`
### 入参 {"brandId":928}
-------------------------
|属性名称|类型|例子|说明|是否必填|
|--------|----|----|----|--------|
|brandId|number||商品所属品牌Id|必填|
---------------------
### 返回 (关注list里面的id 和 text)
``` json
{
"code": 200,
"data": {
"list": [
{
"checkStatus": 100,
"createTime": "2015-09-15",
"id": 18,
"shopName": "得宝纸巾单品专卖店【测试】",
"shopNature": 0,
"shopsId": 18,
"shopsType": 0,
"status": 1,
"text": "得宝纸巾单品专卖店【测试】",
"updateTime": "2016-02-18"
},
{
"checkStatus": 100,
"createTime": "2015-09-11",
"id": 16,
"shopName": ":CHOCOOLATEQ",
"shopNature": 0,
"shopsId": 16,
"shopsType": 0,
"status": 1,
"text": ":CHOCOOLATEQ",
"updateTime": "2016-02-18"
},
{
"checkStatus": 100,
"createTime": "2015-09-11",
"id": 15,
"shopName": "得宝旗舰店",
"shopNature": 0,
"shopsId": 15,
"shopsType": 0,
"status": 1,
"text": "得宝旗舰店",
"updateTime": "2016-02-17"
}
],
"page": 1,
"size": 10,
"total": 3,
"totalPage": 1
},
"message": "操作成功"
}
```
# 上下架productskc
> 接口名: `/product/updateGoodsStatus`
### 入参 {"productSkc":928, "targetStatus" : 0}
-------------------------
|属性名称|类型|例子|说明|是否必填|
|--------|----|----|----|--------|
|productSkc|number||商品skc|必填|
|targetStatus|number||目标状态 0 代表下架, 1 代表上架|必填|
---------------------
### 返回
``` json
{
"code": 200,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "update status success."
}
```
# 上下架productsku
> 接口名: `/product/updateProductSkuStatus`
### 入参 {"productSku":928, "targetStatus" : 0}
-------------------------
|属性名称|类型|例子|说明|是否必填|
|--------|----|----|----|--------|
|productSku|number||商品sku|必填|
|targetStatus|number||目标状态 0 代表下架, 1 代表上架|必填|
---------------------
### 返回
``` json
{
"code": 200,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "update status success."
}
```
\ No newline at end of file
... ...
... ... @@ -117,16 +117,12 @@
"code": 200,
"data": [
{
"checkStatus": 0,
"shopName": "得宝旗舰店",
"shopsId": 15,
"status": 0
"id": 80,
"text": "Marmiulous"
},
{
"checkStatus": 0,
"shopName": ":CHOCOOLATEQ",
"shopsId": 16,
"status": 0
"id": 81,
"text": "Ethel"
}
],
"message": "操作成功"
... ... @@ -153,19 +149,12 @@
"code": 200,
"data": [
{
"brandDomain": "lily",
"brandName": "lily",
"brandNameEn": "lily",
"id": 1431,
"status": 1
"id": 80,
"text": "Marmiulous"
},
{
"brandDomain": "test",
"brandName": "test",
"brandNameCn": "",
"brandNameEn": "test",
"id": 1430,
"status": 1
"id": 81,
"text": "Ethel"
}
],
"md5": "03098c8c158c8405117daadb91ed792a",
... ... @@ -192,20 +181,19 @@
{
"code": 200,
"data": [
{
"brandId": 0,
"supplierId": 1,
"supplierName": "10*1"
},
{
{
"agreementEndTime": 0,
"brandId": 0,
"supplierId": 2,
"supplierName": "广派商业(上海)有限公司"
"id": 73,
"supplierId": 0,
"text": "广州乐夏服饰贸易有限公司"
},
{
"agreementEndTime": 0,
"brandId": 0,
"supplierId": 3,
"supplierName": "广州市海珠区艺柏时装经营部"
"id": 75,
"supplierId": 0,
"text": "MYGE"
}
],
"message": "操作成功"
... ...
... ... @@ -313,7 +313,7 @@ http://127.0.0.1:8083/yohobuy-platform-web/product/getProductSort
开启
/product/publishProductSort
请求参数 {"id" : 1}
请求参数 {"param" : 1}
响应 :{
"code": 200,
"data": [],
... ... @@ -325,7 +325,7 @@ http://127.0.0.1:8083/yohobuy-platform-web/product/getProductSort
/product/closeProductSort
请求参数 {"id" : 1}
请求参数 {"param" : 1}
响应 :{
"code": 200,
"data": [],
... ...
... ... @@ -7,20 +7,47 @@
### 入参
```json
//店铺创建列表
{
"page":1,//可选
"size":10,//可选
"supplierId":0,//可选
"brandId":0,//可选
"checkStatus":0,//可选
"operationStatus":1,
"checkStatusArr":"100,200,900"
}
//店铺信息管理列表
{
"page":1,//可选
"size":10,//可选
"supplierId":0,//可选
"brandId":0,//可选
"checkStatus":0,//可选
"operationStatus":2,
"checkStatusArr":"200,300,900"
}
/Data/logs/union
//店铺审核列表
{
"page":2,
"size":12,
"supplierId":950,
"brandId":928,
"checkStatus":100,
"operationStatus":1,
"checkStatusArr":"100,200,900"
"page":1,//可选
"size":10,//可选
"supplierId":0,//可选
"brandId":0,//可选
"checkStatus":200,
"operationStatus":0,
"checkStatusArr":"200"
}
```
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|page|int|2|第几页|
|page|int|1|第几页|
|size|int|50|每页条数|
|supplierId|int|950|供应商ID|
|brandId|int|928|品牌ID|
... ... @@ -39,23 +66,50 @@
"data": {
"list": [
{
"checkStatus": 200,
"createTime": "2015-11-27 15:45:19",
"shopName": "Case Scenario",
"checkStatus": 900,
"createTime": "2016-02-26",
"shopName": "预生产",
"shopNature": 0,
"shopRelationList": [
{
"brandId": 409,
"brandName": "Case Scenario",
"brandNameCn": "",
"brandNameEn": "Case Scenario",
"agreementEndTime": 0,
"brandId": 1499,
"brandName": "标哥",
"brandNameEn": "标哥",
"brandStatus": 1,
"id": 1,
"status": 0,
"supplierId": 0,
"supplierStatus": 0
}
],
"shopsId": 582,
"shopsType": 0,
"status": 0,
"updateTime": "2016-02-26"
},
{
"checkStatus": 900,
"createTime": "2016-02-25",
"shopName": "店铺123abc",
"shopNature": 0,
"shopRelationList": [
{
"agreementEndTime": 0,
"brandId": 1492,
"brandName": "茶",
"brandNameEn": "C",
"brandStatus": 0,
"id": 2,
"status": 0,
"supplierId": 0,
"supplierStatus": 0
}
],
"shopsId": 31,
"status": 1,
"updateTime": "2015-12-08 19:20:44"
"shopsId": 571,
"shopsType": 0,
"status": 0,
"updateTime": "2016-02-25"
}
],
"page": 1,
... ... @@ -71,7 +125,13 @@
## 获取店铺详情
> 接口名: `/ShopsRest/getShopDetailById`
> 接口名:
创建店铺的列表中,点击详情和编辑的url:`/ShopsRest/getShopDetailById` 查询的是check表
审核店铺的列表中,点击详情和编辑的url:`/ShopsRest/getShopDetailById` 查询的是check表
店铺信息管理列表中,点查看的url:`/ShopsCheckRest/getLastCheckShopInfoById` 查询的是店铺表,该表的数据是已经审核通过的或者是曾经审核通过的数据
店铺信息管理列表中,点编辑的url:`/ShopsRest/getShopDetailById` 查询的是check表
### 入参
... ... @@ -181,13 +241,19 @@ shopRelation的json格式为:
"shopRelation":[
{
"method":"add",
"brandId":355,
"brandName":"TMCAZ",
"supplierId":310,
"supplierName":"上海贺王工贸实业公司",
"agreementEndTime":1485792000
},
{
"method":"add",
"brandId":1389,
"brandName":"WWTorres",
"supplierId":1226,
"supplierName":"上海矩乐文化发展有限公司",
"agreementEndTime":1482076800
}
]
... ... @@ -234,18 +300,30 @@ shopRelation的json格式为:
"shopRelation":[
{
""id":1,"
"id":737,
"method":"delete",
"brandId":355,
"brandName":"TMCAZ",
"supplierId":310,
"agreementEndTime":1485792000,
"method":"delete"
"supplierName":"上海贺王工贸实业公司",
"agreementEndTime":1485792000
},
{
"id":2,
"id":738,
"method":"",
"brandId":1389,
"brandName":"WWTorres",
"supplierId":1226,
"agreementEndTime":1482076800,
"method":"add"
"supplierName":"上海矩乐文化发展有限公司",
"agreementEndTime":1482076800
},
{
"method":"add",
"brandId":1480,
"brandName":"满了",
"supplierId":1348,
"supplierName":"满了吧",
"agreementEndTime":1482076800
}
]
```
... ...