...
|
...
|
@@ -3,10 +3,15 @@ |
|
|
|
|
|
## 获取店铺管理员列表
|
|
|
|
|
|
> 接口名:`/shops/getShopsAdminList`
|
|
|
> 接口名:`/shops/ShopsAdminRest/getShopsAdminList`
|
|
|
|
|
|
### 入参
|
|
|
|
|
|
``` json
|
|
|
{
|
|
|
"page":2,
|
|
|
"size":12
|
|
|
}
|
|
|
```
|
|
|
-------------------------
|
|
|
|属性名称|类型|例子|说明|
|
|
|
|--------|----|----|----|
|
...
|
...
|
@@ -18,26 +23,157 @@ |
|
|
|
|
|
``` json
|
|
|
{
|
|
|
"code":200,
|
|
|
"message":"list",
|
|
|
"data":{
|
|
|
|
|
|
"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/addAdminRelation`
|
|
|
> 接口名: `/shops/ShopsAdminRest/addAdminRelation`
|
|
|
|
|
|
### 入参
|
|
|
|
|
|
```json
|
|
|
{
|
|
|
"shopsId":15,
|
|
|
"adminPid":2,
|
|
|
"identity":12
|
|
|
}
|
|
|
```
|
|
|
-------------------------
|
|
|
|属性名称|类型|例子|说明|
|
|
|
|--------|----|----|----|
|
|
|
|shopsId|int|15|店铺ID|
|
|
|
|adminPid|int|2951|管理员ID|
|
|
|
|identity|int|1|身份(1、店长 2、供应商 3、店员)|
|
|
|
|identity|int|1|身份(1、店长 2、供应商 3、店员) 可选 默认为1|
|
|
|
---------------------------
|
|
|
|
|
|
### 返回
|
...
|
...
|
@@ -45,11 +181,11 @@ |
|
|
```json
|
|
|
{
|
|
|
"code":500
|
|
|
"message":"shops_id is null"
|
|
|
"message":"shopsId is null"
|
|
|
}
|
|
|
{
|
|
|
"code":500
|
|
|
"message":"admin_pid is null"
|
|
|
"message":"adminPid is null"
|
|
|
}
|
|
|
{
|
|
|
"code":500
|
...
|
...
|
|