shops.md
7.62 KB
店铺接口服务定义
创建店铺
接口名:
/shops/createShop
入参
属性名称 | 类型 | 例子 | 说明 |
---|---|---|---|
shopName | String | 得宝旗舰店 | 店铺名称 |
shopNature | int | 1 | 店铺性质(1 旗舰店 2 专卖店) |
shopDomain | String | debao | 店铺域名 |
createPid | int | 1 | 创建人ID |
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”的设计理念。 | 店铺简介 |
shopAdmin | JSON数组 | ||
shopRelation | JSON数组 | ||
websiteUrl | JSON数组 | ["www.paperworks.com.cn"] | |
otherUrl | JSON数组 | ["www.paperworks.com.cn","https:\/\/jnby.tmall.com\/"] | |
shopAddress | JSON数组 |
返回
{
"code":200,
"message":"创建成功",
"data":{
"shopId":12
}
}
{
"code":500,
"message":"创建失败",
"data":{
"shopId":-12
}
}
{
"code":500
"message":"shop_name is null"
}
{
"code":500
"message":"Sorry,店铺名已存在"
}
{
"code":500
"message":"shop_domain is null"
}
{
"code":500
"message":"Sorry,店铺域名已存在"
}
{
"code":500
"message":"shop_admin is null"
}
{
"code":500
"message":"shop_relation is null"
}
获取店铺列表
接口名:
/shops/getShopList
入参
属性名称 | 类型 | 例子 | 说明 |
---|---|---|---|
page | int | 2 | 第几页 |
size | int | 50 | 每页条数 |
shopsId | int | 15 | 店铺ID |
shopName | String | 得宝旗舰店 | 店铺名称 |
shopNature | int | 1 | 店铺性质(1 旗舰店 2 专卖店) |
status | int | 1 | 状态(1开启 0 关闭) |
checkStatus | int | 300 | 审核状态(100 暂存 200 待审核 300 审核通过 900 驳回) |
supplierId | int | 950 | 供应商ID |
brandId | int | 928 | 品牌ID |
返回
{
"code":200
"message":"ok"
"data":
{
"page":1,
"totalPage": 10,
"total": 100
"size": 10,
"list":
{
"shopsId": 15,
"shopName": "",
"shopDomain": "",
"shopNature": "",
"shopLogo": "",
"websiteUrl": "",
"shopAddress": "",
"createPid": "",
"checkStatus": "",
"createTime": "",
"updateTime": "",
"status": "",
"shopsAdmin": {
"id": "",
"shopsId": "",
"adminPid": "",
"identity": "",
"createTime": "",
"updateTime": ""
},
"shopsBrandList": [{
"id": "",
"shopsId": "",
"brandId": "",
"supplierId": "",
"createTime": "",
"updateTime": "",
"agreementEndTime": ""
},{
"id": "",
"shopsId": "",
"brandId": "",
"supplierId": "",
"createTime": "",
"updateTime": "",
"agreementEndTime": ""
}],
"shopsSupplierList": [{
"id": "",
"shopsId": "",
"brandId": "",
"brandName": "",
"agreementEndTime": ""
},{
"id": "",
"shopsId": "",
"brandId": "",
"brandName": "",
"agreementEndTime": ""
}]
}
}
}
店铺同步
接口名:
/shops/synchronizeShop
入参
属性名称 | 类型 | 例子 | 说明 |
---|---|---|---|
shopName | String | 得宝旗舰店 | 店铺名称 |
shopNature | int | 1 | 店铺性质(1 旗舰店 2 专卖店) |
shopDomain | String | debao | 店铺域名 |
createPid | int | 1 | 创建人ID |
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”的设计理念。 | 店铺简介 |
shopAdmin | JSON数组 | ||
shopRelation | JSON数组 | ||
websiteUrl | JSON数组 | ["www.paperworks.com.cn"] | |
otherUrl | JSON数组 | ["www.paperworks.com.cn","https:\/\/jnby.tmall.com\/"] | |
shopAddress | JSON数组 |
返回
{
"code":200
"message":"修改成功"
}
{
"code":500
"message":"shops_id is null"
}
{
"code":500
"message":"shop_name is null"
}
{
"code":500
"message":"Sorry,店铺名已存在"
}
{
"code":500
"message":"shop_domain is null"
}
{
"code":500
"message":"Sorry,域名已存在"
}
根据店铺名查看是否存在
接口名:
/shops/checkByShopName
入参
属性名称 | 类型 | 例子 | 说明 |
---|---|---|---|
shopName | String | 得宝旗舰店 | 店铺名称 |
shopsId | int | 15 | 店铺ID |
返回
{
"code":500,
"message":"shop_name is null"
}
{
"code":500,
"message":"shops_id is null"
}
{
"code":400,
"message":"false"
}
{
"code":200,
"message":"true"
}
根据店铺域名查看是否存在
接口名:
/shops/checkByShopDomain
入参
属性名称 | 类型 | 例子 | 说明 |
---|---|---|---|
shopDomain | String | debao | 店铺域名 |
shopsId | int | 15 | 店铺ID |
返回
{
"code":500,
"message":"shop_name is null"
}
{
"code":500,
"message":"shops_id is null"
}
{
"code":400,
"message":"false"
}
{
"code":200,
"message":"true"
}
获取店铺详情
接口名:
/shops/getDetailByShopId
入参
属性名称 | 类型 | 例子 | 说明 |
---|---|---|---|
shopsId | int | 15 | 店铺ID |
返回
{
"code":400,
"message":"店铺id有误"
}
{
"code":400,
"message":"shopInfo is none"
}
{
"code":200
"message":"ok"
"data":
{
{
"shopsId": 15,
"shopName": "",
"shopDomain": "",
"shopNature": "",
"shopLogo": "",
"websiteUrl": "",
"shopAddress": "",
"createPid": "",
"checkStatus": "",
"createTime": "",
"updateTime": "",
"status": ""
},
"shopsAdmin": [{
"id": "",
"shopsId": "",
"adminPid": "",
"identity": "",
"createTime": "",
"updateTime": ""
},{
"id": "",
"shopsId": "",
"adminPid": "",
"identity": "",
"createTime": "",
"updateTime": ""
}],
"shopRelation": [{
"id": "",
"shopsId": "",
"brandId": "",
"supplierId": "",
"createTime": "",
"updateTime": "",
"agreementEndTime": ""
},{
"id": "",
"shopsId": "",
"brandId": "",
"supplierId": "",
"createTime": "",
"updateTime": "",
"agreementEndTime": ""
}]
}
}
}