|
|
# 店铺接口服务定义
|
|
|
---------------------
|
|
|
|
|
|
## 创建店铺
|
|
|
|
|
|
> 接口名:`/ShopsRest/addShops`
|
|
|
|
|
|
### 入参
|
|
|
|
|
|
-------------------------
|
|
|
|属性名称|类型|例子|说明|
|
|
|
|--------|----|----|----|
|
|
|
|shopName|String|得宝旗舰店|店铺名称|
|
|
|
|shopNature|int|1|店铺性质(1 旗舰店 2 专卖店)|
|
|
|
|shopDomain|String|debao|店铺域名|
|
|
|
|createPid|int|1|创建人ID|
|
|
|
|shopsType|int|1|店铺模式(1-单品店;2-多品店)|
|
|
|
|shopLogo|String|http://img11.static.yhbimg.com/yhb-img01/2015/09/11/02/01f42dff5d5bd383af1025eea1218cbccc.jpg?imageView/{mode}/w/{width}/h/{height}|店铺logo|
|
|
|
|shopIntro|String|秉承以设计为核心的创新理念,用专业的思维方式将自然与科技、传统与革新、技艺与时尚三者良好融合,着重面料材质与软式廓型的品质互动,更好的诠释“less is more”的设计理念。|店铺简介|
|
|
|
|websiteUrl|JSON数组|["www.paperworks.com.cn"]||
|
|
|
|otherUrl|JSON数组|["www.paperworks.com.cn","https:\/\/jnby.tmall.com\/"]||
|
|
|
|shopAddress|JSON数组|||
|
|
|
|onCheck|int|1|是否需要审核(1-是;0-否)|
|
|
|
|shopRelation|JSON数组||品牌与供应商关系|
|
|
|
---------------------
|
|
|
|
|
|
shopRelation的json格式为:
|
|
|
``` json
|
|
|
|
|
|
"shopRelation":[
|
|
|
{
|
|
|
"brandId":355,
|
|
|
"supplierId":310,
|
|
|
"agreementEndTime":1485792000
|
|
|
},
|
|
|
{
|
|
|
"brandId":1389,
|
|
|
"supplierId":1226,
|
|
|
"agreementEndTime":1482076800
|
|
|
}
|
|
|
]
|
|
|
```
|
|
|
|
|
|
### 返回
|
|
|
返回码code为200就是成功,其余为失败。
|
|
|
|
|
|
``` json
|
|
|
{
|
|
|
"code": 200,
|
|
|
"message": "success."
|
|
|
}
|
|
|
```
|
|
|
|
|
|
|
|
|
## 获取店铺列表
|
|
|
> 接口名: `/ShopsRest/getShopList`
|
...
|
...
|
@@ -185,3 +135,198 @@ shopRelation的json格式为: |
|
|
```
|
|
|
|
|
|
|
|
|
## 创建店铺
|
|
|
|
|
|
> 接口名:`/ShopsRest/addShops`
|
|
|
|
|
|
### 入参
|
|
|
|
|
|
-------------------------
|
|
|
|属性名称|类型|例子|说明|
|
|
|
|--------|----|----|----|
|
|
|
|shopName|String|得宝旗舰店|店铺名称|
|
|
|
|shopNature|int|1|店铺性质(1 旗舰店 2 专卖店)|
|
|
|
|shopDomain|String|debao|店铺域名|
|
|
|
|createPid|int|1|创建人ID|
|
|
|
|shopsType|int|1|店铺模式(1-单品店;2-多品店)|
|
|
|
|shopLogo|String|http://img11.static.yhbimg.com/yhb-img01/2015/09/11/02/01f42dff5d5bd383af1025eea1218cbccc.jpg?imageView/{mode}/w/{width}/h/{height}|店铺logo|
|
|
|
|shopIntro|String|秉承以设计为核心的创新理念,用专业的思维方式将自然与科技、传统与革新、技艺与时尚三者良好融合,着重面料材质与软式廓型的品质互动,更好的诠释“less is more”的设计理念。|店铺简介|
|
|
|
|websiteUrl|JSON数组|["www.paperworks.com.cn"]||
|
|
|
|otherUrl|JSON数组|["www.paperworks.com.cn","https:\/\/jnby.tmall.com\/"]||
|
|
|
|shopAddress|JSON数组|||
|
|
|
|onCheck|int|1|是否需要审核(1-是;0-否)|
|
|
|
|shopRelation|JSON数组||品牌与供应商关系|
|
|
|
---------------------
|
|
|
|
|
|
shopRelation的json格式为:
|
|
|
``` json
|
|
|
|
|
|
"shopRelation":[
|
|
|
{
|
|
|
"brandId":355,
|
|
|
"supplierId":310,
|
|
|
"agreementEndTime":1485792000
|
|
|
},
|
|
|
{
|
|
|
"brandId":1389,
|
|
|
"supplierId":1226,
|
|
|
"agreementEndTime":1482076800
|
|
|
}
|
|
|
]
|
|
|
```
|
|
|
|
|
|
### 返回
|
|
|
返回码code为200就是成功,其余为失败。
|
|
|
|
|
|
``` json
|
|
|
{
|
|
|
"code": 200,
|
|
|
"message": "success."
|
|
|
}
|
|
|
```
|
|
|
|
|
|
|
|
|
## 修改店铺
|
|
|
|
|
|
> 接口名:`/ShopsRest/updateShops`
|
|
|
|
|
|
### 入参
|
|
|
|
|
|
-------------------------
|
|
|
|属性名称|类型|例子|说明|
|
|
|
|--------|----|----|----|
|
|
|
|shopsId|int|2|店铺id|
|
|
|
|shopName|String|得宝旗舰店|店铺名称|
|
|
|
|shopNature|int|1|店铺性质(1 旗舰店 2 专卖店)|
|
|
|
|shopDomain|String|debao|店铺域名|
|
|
|
|createPid|int|1|创建人ID|
|
|
|
|shopsType|int|1|店铺模式(1-单品店;2-多品店)|
|
|
|
|shopLogo|String|http://img11.static.yhbimg.com/yhb-img01/2015/09/11/02/01f42dff5d5bd383af1025eea1218cbccc.jpg?imageView/{mode}/w/{width}/h/{height}|店铺logo|
|
|
|
|shopIntro|String|秉承以设计为核心的创新理念,用专业的思维方式将自然与科技、传统与革新、技艺与时尚三者良好融合,着重面料材质与软式廓型的品质互动,更好的诠释“less is more”的设计理念。|店铺简介|
|
|
|
|websiteUrl|JSON数组|["www.paperworks.com.cn"]||
|
|
|
|otherUrl|JSON数组|["www.paperworks.com.cn","https:\/\/jnby.tmall.com\/"]||
|
|
|
|shopAddress|JSON数组|||
|
|
|
|onCheck|int|1|是否需要审核(1-是;0-否)|
|
|
|
|shopRelation|JSON数组||品牌与供应商关系|
|
|
|
---------------------
|
|
|
|
|
|
shopRelation的json格式为:
|
|
|
``` json
|
|
|
|
|
|
"shopRelation":[
|
|
|
{
|
|
|
"brandId":355,
|
|
|
"supplierId":310,
|
|
|
"agreementEndTime":1485792000
|
|
|
},
|
|
|
{
|
|
|
"brandId":1389,
|
|
|
"supplierId":1226,
|
|
|
"agreementEndTime":1482076800
|
|
|
}
|
|
|
]
|
|
|
```
|
|
|
|
|
|
### 返回
|
|
|
返回码code为200就是成功,其余为失败。
|
|
|
|
|
|
``` json
|
|
|
{
|
|
|
"code": 200,
|
|
|
"message": "success."
|
|
|
}
|
|
|
```
|
|
|
|
|
|
## 关店
|
|
|
|
|
|
> 接口名: `/ShopsRest/closeShops`
|
|
|
|
|
|
### 入参
|
|
|
|
|
|
-------------------------
|
|
|
|属性名称|类型|例子|说明|
|
|
|
|--------|----|----|----|
|
|
|
|shopsId|int|15|店铺ID|
|
|
|
-----------------------------
|
|
|
|
|
|
### 返回
|
|
|
|
|
|
```json
|
|
|
|
|
|
{
|
|
|
"code": 200,
|
|
|
"message": "操作成功"
|
|
|
}
|
|
|
|
|
|
```
|
|
|
|
|
|
## 开店
|
|
|
|
|
|
> 接口名: `/ShopsRest/openShops`
|
|
|
|
|
|
### 入参
|
|
|
|
|
|
-------------------------
|
|
|
|属性名称|类型|例子|说明|
|
|
|
|--------|----|----|----|
|
|
|
|shopsId|int|15|店铺ID|
|
|
|
-----------------------------
|
|
|
|
|
|
### 返回
|
|
|
|
|
|
```json
|
|
|
|
|
|
{
|
|
|
"code": 200,
|
|
|
"message": "操作成功"
|
|
|
}
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
## 审核通过
|
|
|
|
|
|
> 接口名: `/ShopsRest/checkShopPass`
|
|
|
|
|
|
### 入参
|
|
|
|
|
|
-------------------------
|
|
|
|属性名称|类型|例子|说明|
|
|
|
|--------|----|----|----|
|
|
|
|shopsId|int|15|店铺ID|
|
|
|
-----------------------------
|
|
|
|
|
|
### 返回
|
|
|
|
|
|
```json
|
|
|
|
|
|
{
|
|
|
"code": 200,
|
|
|
"message": "操作成功"
|
|
|
}
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
## 审核拒绝
|
|
|
|
|
|
> 接口名: `/ShopsRest/checkReject`
|
|
|
|
|
|
### 入参
|
|
|
|
|
|
-------------------------
|
|
|
|属性名称|类型|例子|说明|
|
|
|
|--------|----|----|----|
|
|
|
|shopsId|int|15|店铺ID|
|
|
|
-----------------------------
|
|
|
|
|
|
### 返回
|
|
|
|
|
|
```json
|
|
|
|
|
|
{
|
|
|
"code": 200,
|
|
|
"message": "操作成功"
|
|
|
}
|
|
|
|
|
|
``` |
...
|
...
|
|