Authored by qianjun

shops012

@@ -3,10 +3,15 @@ @@ -3,10 +3,15 @@
3 3
4 ## 获取店铺管理员列表 4 ## 获取店铺管理员列表
5 5
6 -> 接口名:`/shops/getShopsAdminList` 6 +> 接口名:`/shops/ShopsAdminRest/getShopsAdminList`
7 7
8 ### 入参 8 ### 入参
9 - 9 +``` json
  10 +{
  11 + "page":2,
  12 + "size":12
  13 +}
  14 +```
10 ------------------------- 15 -------------------------
11 |属性名称|类型|例子|说明| 16 |属性名称|类型|例子|说明|
12 |--------|----|----|----| 17 |--------|----|----|----|
@@ -18,26 +23,157 @@ @@ -18,26 +23,157 @@
18 23
19 ``` json 24 ``` json
20 { 25 {
21 - "code":200,  
22 - "message":"list",  
23 - "data":{  
24 - 26 + "code": 200,
  27 + "data": {
  28 + "list": [
  29 + {
  30 + "adminName": "",
  31 + "adminPid": 10180,
  32 + "createTime": "2016-01-14 11:03:44",
  33 + "id": 822,
  34 + "identity": 1,
  35 + "shopName": "MO&Co.",
  36 + "shopsId": 420,
  37 + "updateTime": "1970-01-01 08:00:00"
  38 + },
  39 + {
  40 + "adminName": "成凤驹",
  41 + "adminPid": 2738,
  42 + "createTime": "2016-01-11 16:49:32",
  43 + "id": 820,
  44 + "identity": 7,
  45 + "shopName": "Faroma",
  46 + "shopsId": 430,
  47 + "updateTime": "1970-01-01 08:00:00"
  48 + },
  49 + {
  50 + "adminName": "朱云青",
  51 + "adminPid": 2314,
  52 + "createTime": "2016-01-11 16:49:15",
  53 + "id": 819,
  54 + "identity": 7,
  55 + "shopName": "Faroma",
  56 + "shopsId": 430,
  57 + "updateTime": "1970-01-01 08:00:00"
  58 + },
  59 + {
  60 + "adminName": "",
  61 + "adminPid": 10040,
  62 + "createTime": "2016-01-11 16:48:37",
  63 + "id": 818,
  64 + "identity": 6,
  65 + "shopName": "朴坊Simplemill",
  66 + "shopsId": 319,
  67 + "updateTime": "1970-01-01 08:00:00"
  68 + },
  69 + {
  70 + "adminName": "",
  71 + "adminPid": 2944,
  72 + "createTime": "2016-01-11 16:47:27",
  73 + "id": 817,
  74 + "identity": 7,
  75 + "shopName": "WWTorres",
  76 + "shopsId": 429,
  77 + "updateTime": "1970-01-01 08:00:00"
  78 + },
  79 + {
  80 + "adminName": "朱云青",
  81 + "adminPid": 2314,
  82 + "createTime": "2016-01-11 16:47:15",
  83 + "id": 816,
  84 + "identity": 7,
  85 + "shopName": "WWTorres",
  86 + "shopsId": 429,
  87 + "updateTime": "1970-01-01 08:00:00"
  88 + },
  89 + {
  90 + "adminName": "",
  91 + "adminPid": 3161,
  92 + "createTime": "2016-01-08 15:21:11",
  93 + "id": 815,
  94 + "identity": 7,
  95 + "shopName": "MO&Co.edition",
  96 + "shopsId": 426,
  97 + "updateTime": "1970-01-01 08:00:00"
  98 + },
  99 + {
  100 + "adminName": "",
  101 + "adminPid": 3069,
  102 + "createTime": "2016-01-08 15:20:58",
  103 + "id": 814,
  104 + "identity": 7,
  105 + "shopName": "MO&Co.edition",
  106 + "shopsId": 426,
  107 + "updateTime": "1970-01-01 08:00:00"
  108 + },
  109 + {
  110 + "adminName": "",
  111 + "adminPid": 10172,
  112 + "createTime": "2016-01-08 14:00:53",
  113 + "id": 813,
  114 + "identity": 7,
  115 + "shopName": "ELECOM 宜丽客",
  116 + "shopsId": 421,
  117 + "updateTime": "1970-01-01 08:00:00"
  118 + },
  119 + {
  120 + "adminName": "朱云青",
  121 + "adminPid": 2314,
  122 + "createTime": "2016-01-08 14:00:37",
  123 + "id": 812,
  124 + "identity": 7,
  125 + "shopName": "ELECOM 宜丽客",
  126 + "shopsId": 421,
  127 + "updateTime": "1970-01-01 08:00:00"
  128 + },
  129 + {
  130 + "adminName": "",
  131 + "adminPid": 3161,
  132 + "createTime": "2016-01-08 13:23:48",
  133 + "id": 811,
  134 + "identity": 7,
  135 + "shopName": "MO&Co.",
  136 + "shopsId": 420,
  137 + "updateTime": "1970-01-01 08:00:00"
  138 + },
  139 + {
  140 + "adminName": "",
  141 + "adminPid": 3069,
  142 + "createTime": "2016-01-08 13:23:32",
  143 + "id": 810,
  144 + "identity": 7,
  145 + "shopName": "MO&Co.",
  146 + "shopsId": 420,
  147 + "updateTime": "1970-01-01 08:00:00"
25 } 148 }
  149 + ],
  150 + "page": 2,
  151 + "size": 12,
  152 + "total": 803,
  153 + "totalPage": 67
  154 + },
  155 + "message": "操作成功"
26 } 156 }
27 ``` 157 ```
28 158
29 159
30 ## 添加店铺管理员关系 160 ## 添加店铺管理员关系
31 -> 接口名: `/shops/addAdminRelation` 161 +> 接口名: `/shops/ShopsAdminRest/addAdminRelation`
32 162
33 ### 入参 163 ### 入参
34 - 164 +```json
  165 +{
  166 + "shopsId":15,
  167 + "adminPid":2,
  168 + "identity":12
  169 +}
  170 +```
35 ------------------------- 171 -------------------------
36 |属性名称|类型|例子|说明| 172 |属性名称|类型|例子|说明|
37 |--------|----|----|----| 173 |--------|----|----|----|
38 |shopsId|int|15|店铺ID| 174 |shopsId|int|15|店铺ID|
39 |adminPid|int|2951|管理员ID| 175 |adminPid|int|2951|管理员ID|
40 -|identity|int|1|身份(1、店长 2、供应商 3、店员)| 176 +|identity|int|1|身份(1、店长 2、供应商 3、店员) 可选 默认为1|
41 --------------------------- 177 ---------------------------
42 178
43 ### 返回 179 ### 返回
@@ -45,11 +181,11 @@ @@ -45,11 +181,11 @@
45 ```json 181 ```json
46 { 182 {
47 "code":500 183 "code":500
48 - "message":"shops_id is null" 184 + "message":"shopsId is null"
49 } 185 }
50 { 186 {
51 "code":500 187 "code":500
52 - "message":"admin_pid is null" 188 + "message":"adminPid is null"
53 } 189 }
54 { 190 {
55 "code":500 191 "code":500