Merge branch 'develop' of http://git.dev.yoho.cn/platform/yohobuy-doc into develop
Showing
6 changed files
with
215 additions
and
4 deletions
1 | +## 1.数据库(yhb_operations) | ||
2 | +### 1.1 帮助分类(yhb_operations.help_category) | ||
3 | +#### sql 脚本 | ||
4 | +```sql | ||
5 | +CREATE TABLE `help_category` ( | ||
6 | + `id` smallint(5) unsigned NOT NULL AUTO_INCREMENT, | ||
7 | + `category_name` varchar(50) DEFAULT NULL, | ||
8 | + `parent_id` smallint(5) unsigned NOT NULL DEFAULT '0', | ||
9 | + `platform` varchar(50) NOT NULL COMMENT 'iphone ios手机\n android 安卓手机 \n ipad ios平板 \n androidpad 安卓平板 \n h5 手机网站 \n web pc网站', | ||
10 | + `create_time` int(10) unsigned NOT NULL DEFAULT '0', | ||
11 | + `update_time` int(10) unsigned NOT NULL DEFAULT '0', | ||
12 | + `status` tinyint(4) NOT NULL DEFAULT '1' COMMENT '1、正常 2、已删除', | ||
13 | + PRIMARY KEY (`id`) | ||
14 | +) ENGINE=InnoDB AUTO_INCREMENT=50 DEFAULT CHARSET=utf8; | ||
15 | + | ||
16 | +``` | ||
17 | +#### 说明:增加标识字段status 1 表示正常记录 2 表示已删除记录 |
1 | +## 1.数据库(yhb_operations) | ||
2 | +### 1.1 帮助内容(yhb_operations.help_content) | ||
3 | +#### sql 脚本 | ||
4 | +```sql | ||
5 | +CREATE TABLE `help_content` ( | ||
6 | + `id` int(11) unsigned NOT NULL AUTO_INCREMENT, | ||
7 | + `title` varchar(255) DEFAULT NULL, | ||
8 | + `category_id` smallint(5) unsigned NOT NULL DEFAULT '0', | ||
9 | + `content` text, | ||
10 | + `platform` varchar(50) DEFAULT NULL, | ||
11 | + `create_time` int(10) unsigned NOT NULL DEFAULT '0', | ||
12 | + `update_time` int(10) unsigned NOT NULL DEFAULT '0', | ||
13 | + `status` tinyint(4) NOT NULL DEFAULT '1' COMMENT '1、正常 2、已删除', | ||
14 | + PRIMARY KEY (`id`) | ||
15 | +) ENGINE=InnoDB AUTO_INCREMENT=45 DEFAULT CHARSET=utf8; | ||
16 | + | ||
17 | +``` | ||
18 | +#### 说明:增加标识字段status 1 表示正常记录 2 表示已删除记录 |
inferface-document/net_sale.md
0 → 100644
1 | +# 查询热销搜索词 | ||
2 | + | ||
3 | +> 接口名: `/searchWords/queryHotSearchTerms` | ||
4 | + | ||
5 | +### 入参 | ||
6 | + | ||
7 | +------------------------- | ||
8 | +|属性名称|类型|例子|说明|是否必填| | ||
9 | +|--------|----|----|----|--------| | ||
10 | +|page|number|1|当前页|默认1| | ||
11 | +|size|number|20|条数|默认10| | ||
12 | + | ||
13 | +--------------------- | ||
14 | + | ||
15 | +### 返回 (只关注content字段) | ||
16 | + | ||
17 | +``` json | ||
18 | +{ | ||
19 | + "code": 200, | ||
20 | + "data": { | ||
21 | + "list": [ | ||
22 | + { | ||
23 | + "channelIds": "1,2", | ||
24 | + "content": "hhhgg", | ||
25 | + "creatorUid": 0, | ||
26 | + "creatorUsrname": "wxtest1", | ||
27 | + "id": 123, | ||
28 | + "modifyUid": 0, | ||
29 | + "modifyUsrname": "wxtest1", | ||
30 | + "status": 2, | ||
31 | + "type": 1, | ||
32 | + "url": "hhh" | ||
33 | + }, | ||
34 | + { | ||
35 | + "channelIds": "1,2,3,4", | ||
36 | + "content": "aaaa", | ||
37 | + "creatorUid": 0, | ||
38 | + "creatorUsrname": "wxtest1", | ||
39 | + "id": 122, | ||
40 | + "status": 2, | ||
41 | + "type": 1, | ||
42 | + "url": "aaaaa" | ||
43 | + } | ||
44 | + ], | ||
45 | + "page": 1, | ||
46 | + "size": 2, | ||
47 | + "total": 18, | ||
48 | + "totalPage": 9 | ||
49 | + }, | ||
50 | + "md5": "3ead7bfd94211a4352e0edfb9d5afbf8", | ||
51 | + "message": "查询搜索词列表" | ||
52 | +} | ||
53 | + | ||
54 | +``` |
@@ -450,8 +450,9 @@ | @@ -450,8 +450,9 @@ | ||
450 | 450 | ||
451 | > 接口名: '/product/batchUpdateProductPrice' | 451 | > 接口名: '/product/batchUpdateProductPrice' |
452 | 452 | ||
453 | -### 入参 例子:[{"product_skn": 50000060, "sales_price" :211.22, "vip_discount_type":1, "founder":9278, "return_coin":88, "vip_price":99}, | ||
454 | -{"product_skn": 50000063, "sales_price" :211.22, "vip_discount_type":1, "founder":9278, "return_coin":88, "vip_price":99}] | 453 | +### 入参 例子: |
454 | +{"data" : [{"product_skn": 50000060, "sales_price" :211.22, "vip_discount_type":1, "founder":9278, "return_coin":88, "vip_price":99}, | ||
455 | +{"product_skn": 50000063, "sales_price" :211.22, "vip_discount_type":1, "founder":9278, "return_coin":88, "vip_price":99}]} | ||
455 | 456 | ||
456 | ------------------------- | 457 | ------------------------- |
457 | |属性名称|类型|例子|说明| | 458 | |属性名称|类型|例子|说明| |
@@ -6,7 +6,7 @@ CREATE TABLE `shops_admin` ( | @@ -6,7 +6,7 @@ CREATE TABLE `shops_admin` ( | ||
6 | `id` int(11) unsigned NOT NULL AUTO_INCREMENT, | 6 | `id` int(11) unsigned NOT NULL AUTO_INCREMENT, |
7 | `shops_id` int(11) unsigned NOT NULL, | 7 | `shops_id` int(11) unsigned NOT NULL, |
8 | `admin_pid` int(11) unsigned NOT NULL, | 8 | `admin_pid` int(11) unsigned NOT NULL, |
9 | - `identity` tinyint(3) unsigned DEFAULT '1' COMMENT '1、店长 2、供应商 3、店员', | 9 | + `identity` tinyint(3) unsigned DEFAULT '1' COMMENT '1、品牌公司 2、品牌经销商3、品牌代运营商4、有货品牌经理 5、有货店铺运营6、有货商品运营7、有货平台运营', |
10 | `create_time` int(10) unsigned NOT NULL DEFAULT '0', | 10 | `create_time` int(10) unsigned NOT NULL DEFAULT '0', |
11 | `update_time` int(10) unsigned NOT NULL DEFAULT '0', | 11 | `update_time` int(10) unsigned NOT NULL DEFAULT '0', |
12 | `status` tinyint(4) NOT NULL DEFAULT '1' COMMENT '1、正常 2、已删除', | 12 | `status` tinyint(4) NOT NULL DEFAULT '1' COMMENT '1、正常 2、已删除', |
@@ -230,4 +230,125 @@ | @@ -230,4 +230,125 @@ | ||
230 | |id |是 |int |1 |店铺装修编号 | | 230 | |id |是 |int |1 |店铺装修编号 | |
231 | |platform |是 |string |APP |平台名称 | | 231 | |platform |是 |string |APP |平台名称 | |
232 | |templateName|是 |string |BASE |模板名称 | | 232 | |templateName|是 |string |BASE |模板名称 | |
233 | -|resources |是 |json | |资源 | | ||
233 | +|resources |是 |json | |资源 | | ||
234 | + | ||
235 | +## 查询店铺装修待审核信息 | ||
236 | +> POST `/ShopsDecoratorRest/findAuditShopsDecorator` | ||
237 | + | ||
238 | +### 入参 | ||
239 | + | ||
240 | +```json | ||
241 | + | ||
242 | +{ | ||
243 | +"shopsId":21, | ||
244 | +"brandId":0, | ||
245 | +"checkStatus":200, | ||
246 | +} | ||
247 | +``` | ||
248 | + | ||
249 | +|参数名 |必填 |类型 |示例值 |描述 | | ||
250 | +|------ |---- |---- |------ |---- | | ||
251 | +|shopsId |是 |int |21 |店铺编号 | | ||
252 | +|brandId |是 |int |0 |品牌编号 | | ||
253 | +|checkStatus |否 |int |200 |店铺装修审核状态 | | ||
254 | + | ||
255 | +### 返回 | ||
256 | + | ||
257 | +```json | ||
258 | + | ||
259 | + | ||
260 | + | ||
261 | + { | ||
262 | + "code": 200, | ||
263 | + "data": | ||
264 | + { | ||
265 | + "list": | ||
266 | + [ | ||
267 | + { | ||
268 | + "brands": | ||
269 | + [ | ||
270 | + { | ||
271 | + "brandDomain": "qianjun", | ||
272 | + "brandName": "钱军1", | ||
273 | + "brandNameCn": "", | ||
274 | + "brandNameEn": "qianjun", | ||
275 | + "id": 1470, | ||
276 | + "status": 1 | ||
277 | + } | ||
278 | + ], | ||
279 | + "checkStatus": 200, | ||
280 | + "createTime": 1445909754, | ||
281 | + "id": 1, | ||
282 | + "shopsId": 21, | ||
283 | + "shopsName": "jnby by JNBY", | ||
284 | + "status": 0, | ||
285 | + "updateTime": 1456128116 | ||
286 | + }, | ||
287 | + { | ||
288 | + "brands": | ||
289 | + [ | ||
290 | + { | ||
291 | + "brandDomain": "qianjun", | ||
292 | + "brandName": "钱军1", | ||
293 | + "brandNameCn": "", | ||
294 | + "brandNameEn": "qianjun", | ||
295 | + "id": 1470, | ||
296 | + "status": 1 | ||
297 | + } | ||
298 | + ], | ||
299 | + "checkStatus": 100, | ||
300 | + "createTime": 1445909754, | ||
301 | + "id": 2, | ||
302 | + "shopsId": 21, | ||
303 | + "shopsName": "jnby by JNBY", | ||
304 | + "status": 0, | ||
305 | + "updateTime": 1456128116 | ||
306 | + }, | ||
307 | + { | ||
308 | + "brands": | ||
309 | + [ | ||
310 | + { | ||
311 | + "brandDomain": "qianjun", | ||
312 | + "brandName": "钱军1", | ||
313 | + "brandNameCn": "", | ||
314 | + "brandNameEn": "qianjun", | ||
315 | + "id": 1470, | ||
316 | + "status": 1 | ||
317 | + } | ||
318 | + ], | ||
319 | + "checkStatus": 200, | ||
320 | + "createTime": 1445909754, | ||
321 | + "id": 3, | ||
322 | + "shopsId": 21, | ||
323 | + "shopsName": "jnby by JNBY", | ||
324 | + "status": 0, | ||
325 | + "updateTime": 1456128116 | ||
326 | + } | ||
327 | + ], | ||
328 | + "page": 1, | ||
329 | + "size": 10, | ||
330 | + "total": 3, | ||
331 | + "totalPage": 1 | ||
332 | + }, | ||
333 | + "message": "操作成功" | ||
334 | + } | ||
335 | + | ||
336 | + | ||
337 | +``` | ||
338 | + | ||
339 | +|参数名 |必填 |类型 |示例值 |描述 | | ||
340 | +|------ |---- |---- |------ |---- | | ||
341 | +|id |是 |int |3 |店铺装修编号 | | ||
342 | +|shopsId |是 |int |21 |shopsId | | ||
343 | +|shopsName |是 |string |jnby by JNBY |店铺名称 | | ||
344 | +|status |是 |int |0 |店铺装修状态 | | ||
345 | +|checkStatus |是 |int |200 |店铺装修审核状态 | | ||
346 | +|createTime |是 |int |1445909754 |店铺装修创建时间 | | ||
347 | +|updateTime |是 |int |1456128116 |店铺装修更新时间 | | ||
348 | +|brands |否 |json | |品牌信息 | | ||
349 | +|id |否 |int |517 |品牌编号 | | ||
350 | +|brandName |否 |string |T.U.K |品牌名称 | | ||
351 | +|brandNameCn |否 |string | |品牌中文名称 | | ||
352 | +|brandNameEn |否 |string |T.U.K |品牌英文名称 | | ||
353 | +|status |否 |int |1 |品牌开启状态 | | ||
354 | +|brandDomain |否 |string |T.U.K |品牌主域名 | |
-
Please register or login to post a comment