Showing
1 changed file
with
195 additions
and
50 deletions
1 | # 店铺接口服务定义 | 1 | # 店铺接口服务定义 |
2 | --------------------- | 2 | --------------------- |
3 | 3 | ||
4 | -## 创建店铺 | ||
5 | - | ||
6 | -> 接口名:`/ShopsRest/addShops` | ||
7 | - | ||
8 | -### 入参 | ||
9 | - | ||
10 | -------------------------- | ||
11 | -|属性名称|类型|例子|说明| | ||
12 | -|--------|----|----|----| | ||
13 | -|shopName|String|得宝旗舰店|店铺名称| | ||
14 | -|shopNature|int|1|店铺性质(1 旗舰店 2 专卖店)| | ||
15 | -|shopDomain|String|debao|店铺域名| | ||
16 | -|createPid|int|1|创建人ID| | ||
17 | -|shopsType|int|1|店铺模式(1-单品店;2-多品店)| | ||
18 | -|shopLogo|String|http://img11.static.yhbimg.com/yhb-img01/2015/09/11/02/01f42dff5d5bd383af1025eea1218cbccc.jpg?imageView/{mode}/w/{width}/h/{height}|店铺logo| | ||
19 | -|shopIntro|String|秉承以设计为核心的创新理念,用专业的思维方式将自然与科技、传统与革新、技艺与时尚三者良好融合,着重面料材质与软式廓型的品质互动,更好的诠释“less is more”的设计理念。|店铺简介| | ||
20 | -|websiteUrl|JSON数组|["www.paperworks.com.cn"]|| | ||
21 | -|otherUrl|JSON数组|["www.paperworks.com.cn","https:\/\/jnby.tmall.com\/"]|| | ||
22 | -|shopAddress|JSON数组||| | ||
23 | -|onCheck|int|1|是否需要审核(1-是;0-否)| | ||
24 | -|shopRelation|JSON数组||品牌与供应商关系| | ||
25 | ---------------------- | ||
26 | - | ||
27 | -shopRelation的json格式为: | ||
28 | -``` json | ||
29 | - | ||
30 | -"shopRelation":[ | ||
31 | - { | ||
32 | - "brandId":355, | ||
33 | - "supplierId":310, | ||
34 | - "agreementEndTime":1485792000 | ||
35 | - }, | ||
36 | - { | ||
37 | - "brandId":1389, | ||
38 | - "supplierId":1226, | ||
39 | - "agreementEndTime":1482076800 | ||
40 | - } | ||
41 | - ] | ||
42 | -``` | ||
43 | - | ||
44 | -### 返回 | ||
45 | -返回码code为200就是成功,其余为失败。 | ||
46 | - | ||
47 | -``` json | ||
48 | -{ | ||
49 | - "code": 200, | ||
50 | - "message": "success." | ||
51 | -} | ||
52 | -``` | ||
53 | - | ||
54 | 4 | ||
55 | ## 获取店铺列表 | 5 | ## 获取店铺列表 |
56 | > 接口名: `/ShopsRest/getShopList` | 6 | > 接口名: `/ShopsRest/getShopList` |
@@ -185,3 +135,198 @@ shopRelation的json格式为: | @@ -185,3 +135,198 @@ shopRelation的json格式为: | ||
185 | ``` | 135 | ``` |
186 | 136 | ||
187 | 137 | ||
138 | +## 创建店铺 | ||
139 | + | ||
140 | +> 接口名:`/ShopsRest/addShops` | ||
141 | + | ||
142 | +### 入参 | ||
143 | + | ||
144 | +------------------------- | ||
145 | +|属性名称|类型|例子|说明| | ||
146 | +|--------|----|----|----| | ||
147 | +|shopName|String|得宝旗舰店|店铺名称| | ||
148 | +|shopNature|int|1|店铺性质(1 旗舰店 2 专卖店)| | ||
149 | +|shopDomain|String|debao|店铺域名| | ||
150 | +|createPid|int|1|创建人ID| | ||
151 | +|shopsType|int|1|店铺模式(1-单品店;2-多品店)| | ||
152 | +|shopLogo|String|http://img11.static.yhbimg.com/yhb-img01/2015/09/11/02/01f42dff5d5bd383af1025eea1218cbccc.jpg?imageView/{mode}/w/{width}/h/{height}|店铺logo| | ||
153 | +|shopIntro|String|秉承以设计为核心的创新理念,用专业的思维方式将自然与科技、传统与革新、技艺与时尚三者良好融合,着重面料材质与软式廓型的品质互动,更好的诠释“less is more”的设计理念。|店铺简介| | ||
154 | +|websiteUrl|JSON数组|["www.paperworks.com.cn"]|| | ||
155 | +|otherUrl|JSON数组|["www.paperworks.com.cn","https:\/\/jnby.tmall.com\/"]|| | ||
156 | +|shopAddress|JSON数组||| | ||
157 | +|onCheck|int|1|是否需要审核(1-是;0-否)| | ||
158 | +|shopRelation|JSON数组||品牌与供应商关系| | ||
159 | +--------------------- | ||
160 | + | ||
161 | +shopRelation的json格式为: | ||
162 | +``` json | ||
163 | + | ||
164 | +"shopRelation":[ | ||
165 | + { | ||
166 | + "brandId":355, | ||
167 | + "supplierId":310, | ||
168 | + "agreementEndTime":1485792000 | ||
169 | + }, | ||
170 | + { | ||
171 | + "brandId":1389, | ||
172 | + "supplierId":1226, | ||
173 | + "agreementEndTime":1482076800 | ||
174 | + } | ||
175 | + ] | ||
176 | +``` | ||
177 | + | ||
178 | +### 返回 | ||
179 | +返回码code为200就是成功,其余为失败。 | ||
180 | + | ||
181 | +``` json | ||
182 | +{ | ||
183 | + "code": 200, | ||
184 | + "message": "success." | ||
185 | +} | ||
186 | +``` | ||
187 | + | ||
188 | + | ||
189 | +## 修改店铺 | ||
190 | + | ||
191 | +> 接口名:`/ShopsRest/updateShops` | ||
192 | + | ||
193 | +### 入参 | ||
194 | + | ||
195 | +------------------------- | ||
196 | +|属性名称|类型|例子|说明| | ||
197 | +|--------|----|----|----| | ||
198 | +|shopsId|int|2|店铺id| | ||
199 | +|shopName|String|得宝旗舰店|店铺名称| | ||
200 | +|shopNature|int|1|店铺性质(1 旗舰店 2 专卖店)| | ||
201 | +|shopDomain|String|debao|店铺域名| | ||
202 | +|createPid|int|1|创建人ID| | ||
203 | +|shopsType|int|1|店铺模式(1-单品店;2-多品店)| | ||
204 | +|shopLogo|String|http://img11.static.yhbimg.com/yhb-img01/2015/09/11/02/01f42dff5d5bd383af1025eea1218cbccc.jpg?imageView/{mode}/w/{width}/h/{height}|店铺logo| | ||
205 | +|shopIntro|String|秉承以设计为核心的创新理念,用专业的思维方式将自然与科技、传统与革新、技艺与时尚三者良好融合,着重面料材质与软式廓型的品质互动,更好的诠释“less is more”的设计理念。|店铺简介| | ||
206 | +|websiteUrl|JSON数组|["www.paperworks.com.cn"]|| | ||
207 | +|otherUrl|JSON数组|["www.paperworks.com.cn","https:\/\/jnby.tmall.com\/"]|| | ||
208 | +|shopAddress|JSON数组||| | ||
209 | +|onCheck|int|1|是否需要审核(1-是;0-否)| | ||
210 | +|shopRelation|JSON数组||品牌与供应商关系| | ||
211 | +--------------------- | ||
212 | + | ||
213 | +shopRelation的json格式为: | ||
214 | +``` json | ||
215 | + | ||
216 | +"shopRelation":[ | ||
217 | + { | ||
218 | + "brandId":355, | ||
219 | + "supplierId":310, | ||
220 | + "agreementEndTime":1485792000 | ||
221 | + }, | ||
222 | + { | ||
223 | + "brandId":1389, | ||
224 | + "supplierId":1226, | ||
225 | + "agreementEndTime":1482076800 | ||
226 | + } | ||
227 | + ] | ||
228 | +``` | ||
229 | + | ||
230 | +### 返回 | ||
231 | +返回码code为200就是成功,其余为失败。 | ||
232 | + | ||
233 | +``` json | ||
234 | +{ | ||
235 | + "code": 200, | ||
236 | + "message": "success." | ||
237 | +} | ||
238 | +``` | ||
239 | + | ||
240 | +## 关店 | ||
241 | + | ||
242 | +> 接口名: `/ShopsRest/closeShops` | ||
243 | + | ||
244 | +### 入参 | ||
245 | + | ||
246 | +------------------------- | ||
247 | +|属性名称|类型|例子|说明| | ||
248 | +|--------|----|----|----| | ||
249 | +|shopsId|int|15|店铺ID| | ||
250 | +----------------------------- | ||
251 | + | ||
252 | +### 返回 | ||
253 | + | ||
254 | +```json | ||
255 | + | ||
256 | +{ | ||
257 | + "code": 200, | ||
258 | + "message": "操作成功" | ||
259 | +} | ||
260 | + | ||
261 | +``` | ||
262 | + | ||
263 | +## 开店 | ||
264 | + | ||
265 | +> 接口名: `/ShopsRest/openShops` | ||
266 | + | ||
267 | +### 入参 | ||
268 | + | ||
269 | +------------------------- | ||
270 | +|属性名称|类型|例子|说明| | ||
271 | +|--------|----|----|----| | ||
272 | +|shopsId|int|15|店铺ID| | ||
273 | +----------------------------- | ||
274 | + | ||
275 | +### 返回 | ||
276 | + | ||
277 | +```json | ||
278 | + | ||
279 | +{ | ||
280 | + "code": 200, | ||
281 | + "message": "操作成功" | ||
282 | +} | ||
283 | + | ||
284 | +``` | ||
285 | + | ||
286 | + | ||
287 | +## 审核通过 | ||
288 | + | ||
289 | +> 接口名: `/ShopsRest/checkShopPass` | ||
290 | + | ||
291 | +### 入参 | ||
292 | + | ||
293 | +------------------------- | ||
294 | +|属性名称|类型|例子|说明| | ||
295 | +|--------|----|----|----| | ||
296 | +|shopsId|int|15|店铺ID| | ||
297 | +----------------------------- | ||
298 | + | ||
299 | +### 返回 | ||
300 | + | ||
301 | +```json | ||
302 | + | ||
303 | +{ | ||
304 | + "code": 200, | ||
305 | + "message": "操作成功" | ||
306 | +} | ||
307 | + | ||
308 | +``` | ||
309 | + | ||
310 | + | ||
311 | +## 审核拒绝 | ||
312 | + | ||
313 | +> 接口名: `/ShopsRest/checkReject` | ||
314 | + | ||
315 | +### 入参 | ||
316 | + | ||
317 | +------------------------- | ||
318 | +|属性名称|类型|例子|说明| | ||
319 | +|--------|----|----|----| | ||
320 | +|shopsId|int|15|店铺ID| | ||
321 | +----------------------------- | ||
322 | + | ||
323 | +### 返回 | ||
324 | + | ||
325 | +```json | ||
326 | + | ||
327 | +{ | ||
328 | + "code": 200, | ||
329 | + "message": "操作成功" | ||
330 | +} | ||
331 | + | ||
332 | +``` |
-
Please register or login to post a comment