Authored by qianjun

update 01

... ... @@ -17,7 +17,7 @@ or
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|idName|String|"500008"|产品SKN(productSkn)|
|idName|String|"500008"|产品SKN(productSkn,可选)|
---------------------
### 返回
... ... @@ -447,7 +447,7 @@ or
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|idName|String|"And"|品牌名称(brandName)|
|idName|String|"And"|品牌名称(brandName,可选)|
---------------------
### 返回
... ... @@ -561,399 +561,215 @@ or
}
```
## 查询货到付款全部列表
## 添加店铺管理员关系
> 接口名: `/ShopsAdminRest/addAdminRelation`
> 接口名:`/payDelivery/queryPayDeliveryAllList`
### 入参
```json
{
"shopsId":15,
"adminPid":2,
"identity":2
}
```
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|shopsId|int|15|店铺ID|
|adminPid|int|2951|管理员ID|
|identity|int|1|身份(1、品牌公司 2、品牌经销商3、品牌代运营商4、有货品牌经理 5、有货店铺运营 6、有货商品运营7、有货平台运营) 可选 默认为1|
---------------------------
### 返回
```json
{
"code":500
"message":"shopsId is null"
}
{
"code":500
"message":"adminPid is null"
}
{
"code":500
"message":"该关系已存在"
}
{
"code":500
"message":"添加失败"
}
{
"code":200
"message":"添加成功"
}
```
## 删除店铺管理员关系
> 接口名: `/ShopsAdminRest/delAdminRelation`
### 入参
```json
{
"id":24
}
```
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|id|int|20|店铺管理员记录ID|
---------------------------
### 返回
```json
{
"code":500
"message":"id is null"
}
``` json
{
"code":200
"message":"删除成功!"
}
```
## 获取管理员关系详情
> 接口名:`/ShopsAdminRest/getAdminRelationDetailById`
### 入参
```json
or
{
"id":20
"productSkn" :50000855,
"brandName":"ANYHOW",
"isPayDelivery":1
}
```
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|id|int|20|店铺管理员记录ID|
-------------------
|productSkn|int|500008|产品SKN(可选)|
|brandName|String|"And"|品牌名称(可选)|
|isPayDelivery|int|0|是否支持货到付款(0、不支持货到付款 1、支持货到付款 ,可选)|
---------------------
### 返回
```json
{
"code":500,
"message":"id is null"
}
{
"code":500,
"message":"暂无数据"
}
``` json
{
"code": 200,
"data": {
"adminPid": 2951,
"createTime": 1441937052,
"id": 20,
"identity": 7,
"shopsId": 15,
"updateTime": 0
},
"message": "list"
}
```
## 修改店铺管理员关系
> 接口名: `/ShopsAdminRest/updateAdminRalation`
### 入参
```json
{
"id":20,
"shopsId":15,
"adminPid":2951,
"identity":2
}
```
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|id|int|20|店铺管理员记录ID|
|shopsId|int|15|店铺ID|
|adminPid|int|2951|管理员ID|
|identity|int|1|身份(1、品牌公司 2、品牌经销商3、品牌代运营商4、有货品牌经理 5、有货店铺运营 6、有货商品运营7、有货平台运营) 可选 默认为1|
-----------------------------
### 返回
```json
{
"code":500
"message":"id is null"
}
{
"code":500
"message":"shopsId is null"
}
{
"code":500
"message":"adminPid is null"
}
{
"code":500
"message":"该关系已存在"
}
{
"code":200
"message":"修改成功"
}
```
## 根据身份获取用户
> 接口名: `/ShopsAdminRest/getUsersByIdentity`
### 入参
```json
{
"shopsId":521,
"identity":1
}
```
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|shopsId|int|15|店铺ID|
|identity|int|1|身份(1、品牌公司 2、品牌经销商3、品牌代运营商4、有货品牌经理 5、有货店铺运营 6、有货商品运营7、有货平台运营)|
-----------------------------
### 返回
```json
{
"code":440
"message":"shopsId is null"
}
or
{
"code":440
"message":"身份不存在!"
}
or
{
"code":200
"message":"该身份下无用户"
}
or
{
"code":200
"message":"该身份下无用户"
}
or
{
"code":500
"message":"该关系已存在"
}
or
{
"code": 200,
"data": [
{
"identity": 1,
"identityCn": "品牌公司",
"pid": 100037,
"supplierId": 1284,
"truename": "测试AAA"
}
],
"message": "all user"
}
or
{
"code": 200,
"data": [
{
"identity": 6,
"identityCn": "有货商品运营",
"pid": 100007,
"supplierId": 0,
"truename": "123"
},
{
"identity": 6,
"identityCn": "有货商品运营",
"pid": 100012,
"supplierId": 0,
"truename": "C"
},
{
"identity": 6,
"identityCn": "有货商品运营",
"pid": 100028,
"supplierId": 0,
"truename": "喜木"
}
],
"message": "all user"
}
```
## 获取所有身份
> 接口名: `/EnumListRest/getEnumList`
### 入参
-----------------------------
### 返回
```json
"IdentityEnum": [
"list": [
{
"name": "品牌公司",
"value": 1
"brandName": "ANYHOW",
"isPayDelivery": 1,
"productSkn": 50000855
},
{
"name": "品牌经销商",
"value": 2
"brandName": "ANYHOW",
"isPayDelivery": 1,
"productSkn": 50000855
},
{
"name": "品牌代运营商",
"value": 3
"brandName": "ANYHOW",
"isPayDelivery": 1,
"productSkn": 50001168
},
{
"name": "有货品牌经理",
"value": 4
"brandName": "ANYHOW",
"isPayDelivery": 1,
"productSkn": 50001168
},
{
"name": "有货店铺运营",
"value": 5
"brandName": "ANYHOW",
"isPayDelivery": 1,
"productSkn": 50001829
},
{
"name": "有货商品运营",
"value": 6
"brandName": "ANYHOW",
"isPayDelivery": 1,
"productSkn": 50001829
},
{
"name": "有货平台运营",
"value": 7
}
```
其中:key为IdentityEnum
```json
{
"code": 200,
"data": {
"CheckStatusEnum": [
"brandName": "ANYHOW",
"isPayDelivery": 1,
"productSkn": 50002476
},
{
"name": "暂存",
"value": 100
"brandName": "ANYHOW",
"isPayDelivery": 1,
"productSkn": 50002476
},
{
"name": "审核中",
"value": 200
"brandName": "ANYHOW",
"isPayDelivery": 1,
"productSkn": 50002280
},
{
"name": "通过",
"value": 300
"brandName": "ANYHOW",
"isPayDelivery": 1,
"productSkn": 50002280
},
{
"name": "驳回",
"value": 900
}
],
"IdentityEnum": [
"brandName": "ANYHOW",
"isPayDelivery": 1,
"productSkn": 50000882
},
{
"name": "品牌公司",
"value": 1
"brandName": "ANYHOW",
"isPayDelivery": 1,
"productSkn": 50000882
},
{
"name": "品牌经销商",
"value": 2
"brandName": "ANYHOW",
"isPayDelivery": 1,
"productSkn": 50001416
},
{
"name": "品牌代运营商",
"value": 3
"brandName": "ANYHOW",
"isPayDelivery": 1,
"productSkn": 50001416
},
{
"name": "有货品牌经理",
"value": 4
"brandName": "ANYHOW",
"isPayDelivery": 1,
"productSkn": 50000297
},
{
"name": "有货店铺运营",
"value": 5
"brandName": "ANYHOW",
"isPayDelivery": 1,
"productSkn": 50000297
},
{
"name": "有货商品运营",
"value": 6
"brandName": "ANYHOW",
"isPayDelivery": 1,
"productSkn": 50001989
},
{
"name": "有货平台运营",
"value": 7
}
],
"ShopNatureEnum": [
"brandName": "ANYHOW",
"isPayDelivery": 1,
"productSkn": 50001989
},
{
"name": "旗舰店",
"value": 1
"brandName": "ANYHOW",
"isPayDelivery": 1,
"productSkn": 50000684
},
{
"name": "专卖店",
"value": 2
}
],
"ShopOperationStatusEnum": [
"brandName": "ANYHOW",
"isPayDelivery": 1,
"productSkn": 50000684
},
{
"name": "店铺未创建",
"value": 1
"brandName": "EBLIS",
"isPayDelivery": 1,
"productSkn": 50000855
},
{
"name": "店铺已创建",
"value": 2
}
],
"ShopsTypeEnum": [
"brandName": "EBLIS",
"isPayDelivery": 1,
"productSkn": 50000855
},
{
"name": "单品店",
"value": 1
"brandName": "EBLIS",
"isPayDelivery": 1,
"productSkn": 50001168
},
{
"name": "多品店",
"value": 2
}
],
"StatusEnum": [
"brandName": "EBLIS",
"isPayDelivery": 1,
"productSkn": 50001168
},
{
"brandName": "EBLIS",
"isPayDelivery": 1,
"productSkn": 50001829
},
{
"name": "关闭",
"value": 0
"brandName": "EBLIS",
"isPayDelivery": 1,
"productSkn": 50001829
},
{
"name": "开启",
"value": 1
"brandName": "EBLIS",
"isPayDelivery": 1,
"productSkn": 50002476
},
{
"name": "已删除",
"value": 2
"brandName": "EBLIS",
"isPayDelivery": 1,
"productSkn": 50002476
},
{
"brandName": "EBLIS",
"isPayDelivery": 1,
"productSkn": 50002280
},
{
"brandName": "破壳",
"isPayDelivery": 1,
"productSkn": 50000297
},
{
"brandName": "破壳",
"isPayDelivery": 1,
"productSkn": 50001989
},
{
"brandName": "破壳",
"isPayDelivery": 1,
"productSkn": 50001989
},
{
"brandName": "破壳",
"isPayDelivery": 1,
"productSkn": 50000684
},
{
"brandName": "破壳",
"isPayDelivery": 1,
"productSkn": 50000684
}
]
],
"page": 1,
"size": 10,
"total": 220914,
"totalPage": 22092
},
"message": "操作成功"
}
```
\ No newline at end of file
```
... ...