Authored by qianjun

shops012

# 店铺管理员接口服务定义
---------------------
## 获取店铺管理员列表
> 接口名:`/shops/getShopsAdminList`
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|page|int|2|第几页|
|size|int|50|每页条数|
---------------------
### 返回
``` json
{
"code":200,
"message":"list",
"data":{
}
}
```
## 添加店铺管理员关系
> 接口名: `/shops/addAdminRelation`
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|shopsId|int|15|店铺ID|
|adminPid|int|2951|管理员ID|
|identity|int|1|身份(1、店长 2、供应商 3、店员)|
---------------------------
### 返回
```json
{
"code":500
"message":"shops_id is null"
}
{
"code":500
"message":"admin_pid is null"
}
{
"code":500
"message":"该关系已存在"
}
{
"code":500
"message":"添加失败"
}
{
"code":200
"message":"添加成功"
}
```
## 删除店铺管理员关系
> 接口名: `/shops/delAdminRelation`
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|id|int|20|店铺管理员记录ID|
|shopsId|int|15|店铺ID|
---------------------------
### 返回
```json
{
"code":500
"message":"id is null"
}
{
"code":200
"message":"删除成功!"
}
```
## 获取管理员关系详情
> 接口名:`/shops/getAdminRelationDetailById`
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|id|int|20|店铺管理员记录ID|
|shopsId|int|15|店铺ID|
-------------------
### 返回
```json
{
"code":500,
"message":"id is null"
}
{
"code":500,
"message":"shops_id is null"
}
{
"code":500,
"message":"暂无数据"
}
{
"code":200,
"message":"list",
"data":{
}
}
```
## 修改店铺管理员关系
> 接口名: `/shops/updateAdminRalation`
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|shopDomain|String|debao|店铺域名|
|shopsId|int|15|店铺ID|
-----------------------------
### 返回
```json
{
"code":500
"message":"id is null"
}
{
"code":500
"message":"shops_id is null"
}
{
"code":500
"message":"admin_pid is null"
}
{
"code":500
"message":"该关系已存在"
}
{
"code":200
"message":"修改成功"
}
```
# 店铺管理员接口服务定义
---------------------
## 获取店铺管理员列表
> 接口名:`/shops/ShopsAdminRest/getShopsAdminList`
### 入参
``` json
{
"page":2,
"size":12
}
```
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|page|int|2|第几页|
|size|int|50|每页条数|
---------------------
### 返回
``` json
{
"code": 200,
"data": {
"list": [
{
"adminName": "",
"adminPid": 10180,
"createTime": "2016-01-14 11:03:44",
"id": 822,
"identity": 1,
"shopName": "MO&Co.",
"shopsId": 420,
"updateTime": "1970-01-01 08:00:00"
},
{
"adminName": "成凤驹",
"adminPid": 2738,
"createTime": "2016-01-11 16:49:32",
"id": 820,
"identity": 7,
"shopName": "Faroma",
"shopsId": 430,
"updateTime": "1970-01-01 08:00:00"
},
{
"adminName": "朱云青",
"adminPid": 2314,
"createTime": "2016-01-11 16:49:15",
"id": 819,
"identity": 7,
"shopName": "Faroma",
"shopsId": 430,
"updateTime": "1970-01-01 08:00:00"
},
{
"adminName": "",
"adminPid": 10040,
"createTime": "2016-01-11 16:48:37",
"id": 818,
"identity": 6,
"shopName": "朴坊Simplemill",
"shopsId": 319,
"updateTime": "1970-01-01 08:00:00"
},
{
"adminName": "",
"adminPid": 2944,
"createTime": "2016-01-11 16:47:27",
"id": 817,
"identity": 7,
"shopName": "WWTorres",
"shopsId": 429,
"updateTime": "1970-01-01 08:00:00"
},
{
"adminName": "朱云青",
"adminPid": 2314,
"createTime": "2016-01-11 16:47:15",
"id": 816,
"identity": 7,
"shopName": "WWTorres",
"shopsId": 429,
"updateTime": "1970-01-01 08:00:00"
},
{
"adminName": "",
"adminPid": 3161,
"createTime": "2016-01-08 15:21:11",
"id": 815,
"identity": 7,
"shopName": "MO&Co.edition",
"shopsId": 426,
"updateTime": "1970-01-01 08:00:00"
},
{
"adminName": "",
"adminPid": 3069,
"createTime": "2016-01-08 15:20:58",
"id": 814,
"identity": 7,
"shopName": "MO&Co.edition",
"shopsId": 426,
"updateTime": "1970-01-01 08:00:00"
},
{
"adminName": "",
"adminPid": 10172,
"createTime": "2016-01-08 14:00:53",
"id": 813,
"identity": 7,
"shopName": "ELECOM 宜丽客",
"shopsId": 421,
"updateTime": "1970-01-01 08:00:00"
},
{
"adminName": "朱云青",
"adminPid": 2314,
"createTime": "2016-01-08 14:00:37",
"id": 812,
"identity": 7,
"shopName": "ELECOM 宜丽客",
"shopsId": 421,
"updateTime": "1970-01-01 08:00:00"
},
{
"adminName": "",
"adminPid": 3161,
"createTime": "2016-01-08 13:23:48",
"id": 811,
"identity": 7,
"shopName": "MO&Co.",
"shopsId": 420,
"updateTime": "1970-01-01 08:00:00"
},
{
"adminName": "",
"adminPid": 3069,
"createTime": "2016-01-08 13:23:32",
"id": 810,
"identity": 7,
"shopName": "MO&Co.",
"shopsId": 420,
"updateTime": "1970-01-01 08:00:00"
}
],
"page": 2,
"size": 12,
"total": 803,
"totalPage": 67
},
"message": "操作成功"
}
```
## 添加店铺管理员关系
> 接口名: `/shops/ShopsAdminRest/addAdminRelation`
### 入参
```json
{
"shopsId":15,
"adminPid":2,
"identity":12
}
```
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|shopsId|int|15|店铺ID|
|adminPid|int|2951|管理员ID|
|identity|int|1|身份(1、店长 2、供应商 3、店员) 可选 默认为1|
---------------------------
### 返回
```json
{
"code":500
"message":"shopsId is null"
}
{
"code":500
"message":"adminPid is null"
}
{
"code":500
"message":"该关系已存在"
}
{
"code":500
"message":"添加失败"
}
{
"code":200
"message":"添加成功"
}
```
## 删除店铺管理员关系
> 接口名: `/shops/delAdminRelation`
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|id|int|20|店铺管理员记录ID|
|shopsId|int|15|店铺ID|
---------------------------
### 返回
```json
{
"code":500
"message":"id is null"
}
{
"code":200
"message":"删除成功!"
}
```
## 获取管理员关系详情
> 接口名:`/shops/getAdminRelationDetailById`
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|id|int|20|店铺管理员记录ID|
|shopsId|int|15|店铺ID|
-------------------
### 返回
```json
{
"code":500,
"message":"id is null"
}
{
"code":500,
"message":"shops_id is null"
}
{
"code":500,
"message":"暂无数据"
}
{
"code":200,
"message":"list",
"data":{
}
}
```
## 修改店铺管理员关系
> 接口名: `/shops/updateAdminRalation`
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|shopDomain|String|debao|店铺域名|
|shopsId|int|15|店铺ID|
-----------------------------
### 返回
```json
{
"code":500
"message":"id is null"
}
{
"code":500
"message":"shops_id is null"
}
{
"code":500
"message":"admin_pid is null"
}
{
"code":500
"message":"该关系已存在"
}
{
"code":200
"message":"修改成功"
}
```
... ...