Merge branch 'develop' of http://git.dev.yoho.cn/platform/yohobuy-doc into develop
Showing
3 changed files
with
356 additions
and
0 deletions
inferface-document/database/base_product.sql
0 → 100644
1 | +erp_supplier库: | ||
2 | +1、base_product: | ||
3 | +ALTER TABLE `erp_supplier`.`base_product` | ||
4 | +CHANGE COLUMN `grade` `grade` char(20) DEFAULT NULL COMMENT '重点款型(是:1,否:null)', | ||
5 | +ADD COLUMN `factory_code` varchar(100) DEFAULT '' COMMENT '厂家编号' AFTER `brand_folder`, | ||
6 | +ADD COLUMN `age_level` varchar(50) DEFAULT '' COMMENT '年龄层(1成人 2大童 3小童 逗号分隔)' AFTER `factory_code`, | ||
7 | +MODIFY COLUMN `goods_season` smallint(5) NULL DEFAULT 0 COMMENT '1:春2:夏3:秋4:冬5:春夏6:秋冬' AFTER `goods_years`, | ||
8 | +ADD COLUMN `is_vip` enum('Y','N','B') NULL DEFAULT 'B' COMMENT '是否VIP Y:是N:否B:品牌设置' AFTER `age_level`, | ||
9 | +ADD COLUMN `is_limitbuy` enum('Y','N') NULL DEFAULT 'N' COMMENT '是否限购' AFTER `is_vip`, | ||
10 | +ADD COLUMN `limit_start_time` int(10) UNSIGNED NULL DEFAULT 0 COMMENT '限购开始时间' AFTER `is_limitbuy`, | ||
11 | +ADD COLUMN `limit_end_time` int(10) NULL DEFAULT 0 COMMENT '限购结束时间' AFTER `limit_start_time`, | ||
12 | +ADD COLUMN `expect_shelf_time` int(10) NULL DEFAULT 0 COMMENT '预计上架时间' AFTER `limit_end_time`, | ||
13 | +ADD COLUMN `is_outlets` enum('Y','N','B') NULL DEFAULT 'B' COMMENT '是否奥莱 Y:是N:否B:品牌设置' AFTER `expect_shelf_time`, | ||
14 | +ADD COLUMN `seasons` varchar(100) DEFAULT '' COMMENT '适销季 夏:summer 冬:winter 四季:seasons', | ||
15 | +ADD COLUMN `reason` varchar(255) DEFAULT '' COMMENT '审批驳回原因', | ||
16 | +ADD COLUMN `editId` int(10) COMMENT '修改人id', | ||
17 | +ADD COLUMN `audit_pass_id` int(10) COMMENT '审核通过人id', | ||
18 | +ADD COLUMN `audit_pass_time` int(10) NULL DEFAULT 0 COMMENT '审核通过时间', | ||
19 | +ADD COLUMN `audit_fail_id` int(10) COMMENT '审核不通过人id', | ||
20 | +ADD COLUMN `audit_fail_time` int(10) NULL DEFAULT 0 COMMENT '审核不通过时间', | ||
21 | +ADD COLUMN `operate_info` varchar(255) DEFAULT '' COMMENT '操作信息'; | ||
22 | + | ||
23 | + | ||
24 | +/**建立索引***/ | ||
25 | +ALTER TABLE `erp_supplier`.`base_product` | ||
26 | +ADD INDEX `brand_id` (`brand_id`) comment '', | ||
27 | +ADD INDEX `shop_id` (`shop_id`) comment '', | ||
28 | +ADD INDEX `supplier_id` (`supplier_id`) comment '', | ||
29 | +ADD INDEX `is_auditing` (`is_auditing`) comment '', | ||
30 | +ADD INDEX `attribute` (`attribute`) comment '', | ||
31 | +ADD INDEX `is_jit` (`is_jit`) comment '', | ||
32 | +ADD INDEX `is_advance` (`is_advance`) comment '', | ||
33 | +ADD INDEX `is_outlets` (`is_outlets`) comment ''; | ||
34 | + | ||
35 | +2、base_goods: | ||
36 | +ALTER TABLE `erp_supplier`.`base_goods` | ||
37 | +ADD COLUMN `model_code` varchar(50) COMMENT '款型编号' AFTER `color_id`, | ||
38 | +ADD COLUMN `factory_goods_name` varchar(50) COMMENT '厂家颜色' AFTER `goods_name`; | ||
39 | + | ||
40 | + | ||
41 | +3、base_single: | ||
42 | + | ||
43 | +ALTER TABLE `erp_supplier`.`base_single` | ||
44 | +ADD COLUMN `is_suppled` enum('N','Y') DEFAULT 'Y' COMMENT '能否补货' AFTER `size_id`, | ||
45 | +ADD COLUMN `bar_code` varchar(255) DEFAULT '' COMMENT '条形码' AFTER `is_suppled`, | ||
46 | +ADD COLUMN `presale_storage_num` int(11) unsigned DEFAULT '0' COMMENT '预售库存' AFTER `bar_code`, | ||
47 | +ADD INDEX `is_suppled` (`is_suppled`) comment ''; | ||
48 | + | ||
49 | + | ||
50 | +erp_product库: | ||
51 | +1、product: | ||
52 | + | ||
53 | +ALTER TABLE `erp_product`.`product` | ||
54 | +ADD COLUMN `goods_years` smallint(5) DEFAULT 0, | ||
55 | +ADD COLUMN `goods_season` smallint(5) DEFAULT 0 COMMENT '1:春2:夏3:秋4:冬5:春夏6:秋冬' AFTER `goods_years`, | ||
56 | +ADD COLUMN `limit_start_time` int(10) UNSIGNED DEFAULT 0 COMMENT '限购开始时间' AFTER `brand_folder`, | ||
57 | +ADD COLUMN `limit_end_time` int(10) UNSIGNED DEFAULT 0 COMMENT '限购结束时间' AFTER `limit_start_time`, | ||
58 | +ADD COLUMN `expect_shelf_time` int(10) UNSIGNED DEFAULT 0 COMMENT '预计上架时间' AFTER `limit_end_time`, | ||
59 | +ADD COLUMN `factory_code` varchar(100) DEFAULT '' COMMENT '厂家编号' AFTER `expect_shelf_time`, | ||
60 | +ADD COLUMN `age_level` varchar(50) DEFAULT '1' COMMENT '年龄层(1成人 2大童 3小童 逗号分隔)' AFTER `factory_code`, | ||
61 | +CHANGE COLUMN `grade` `grade` char(20) DEFAULT NULL COMMENT '重点款型(是:K,否:null)', | ||
62 | +MODIFY COLUMN `is_outlets` enum('Y','N','B') DEFAULT 'N' COMMENT '是否奥莱 Y:是N:否B:品牌设置' AFTER `is_promotion`, | ||
63 | +ADD COLUMN `is_promotional_gifts` enum('Y','N') DEFAULT 'N' AFTER `goods_season`, | ||
64 | +ADD COLUMN `is_vip` enum('Y','N','B') DEFAULT 'N' COMMENT '是否VIP Y:是N:否B:品牌设置' AFTER `is_promotional_gifts`, | ||
65 | +ADD COLUMN `is_limitbuy` enum('Y','N') DEFAULT 'N' COMMENT '是否限购' AFTER `is_vip`, | ||
66 | +ADD COLUMN `audit_pass_id` int(10) COMMENT '审核通过人id', | ||
67 | +ADD COLUMN `audit_pass_time` int(10) NULL DEFAULT 0 COMMENT '审核通过时间', | ||
68 | +ADD COLUMN `audit_fail_id` int(10) COMMENT '审核不通过人id', | ||
69 | +ADD COLUMN `audit_fail_time` int(10) NULL DEFAULT 0 COMMENT '审核不通过时间', | ||
70 | +ADD COLUMN `operate_info` varchar(255) DEFAULT '' COMMENT '操作信息'; | ||
71 | + | ||
72 | + | ||
73 | +/***添加索引****/ | ||
74 | +ALTER TABLE `erp_product`.`product` | ||
75 | +ADD INDEX `brand_id` (`brand_id`) comment '', | ||
76 | +ADD INDEX `shop_id` (`shop_id`) comment '', | ||
77 | +ADD INDEX `supplier_id` (`supplier_id`) comment '', | ||
78 | +ADD INDEX `attribute` (`attribute`) comment '', | ||
79 | +ADD INDEX `is_jit` (`is_jit`) comment '', | ||
80 | +ADD INDEX `is_outlets` (`is_outlets`) comment '', | ||
81 | +ADD INDEX `is_advance` (`is_advance`) comment ''; | ||
82 | + | ||
83 | +2、base_goods: | ||
84 | +ALTER TABLE `erp_product`.`goods` | ||
85 | +ADD COLUMN `model_code` varchar(50) COMMENT '款型编号' AFTER `color_id`, | ||
86 | +ADD COLUMN `factory_goods_name` varchar(50) COMMENT '厂家颜色' AFTER `goods_name`; | ||
87 | + | ||
88 | +3、storage: | ||
89 | + | ||
90 | +ALTER TABLE `erp_product`.`storage` | ||
91 | +ADD COLUMN `is_suppled` enum('Y','N') DEFAULT 'Y' COMMENT '能否补货' AFTER `update_time`, | ||
92 | +ADD COLUMN `bar_code` varchar(255) DEFAULT '' COMMENT '条形码' AFTER `is_suppled`, | ||
93 | +ADD COLUMN `presale_storage_num` int(11) unsigned DEFAULT '0' COMMENT '预售库存' AFTER `bar_code`, | ||
94 | +ADD INDEX `is_suppled` (`is_suppled`) comment ''; | ||
95 | + | ||
96 | + | ||
97 | +ALTER TABLE `erp_product`.`storage` | ||
98 | +DROP COLUMN `presale_storage_num`; | ||
99 | + | ||
100 | + | ||
101 | +4、product_price: | ||
102 | + | ||
103 | +ALTER TABLE `erp_product`.`product_price` | ||
104 | +CHANGE COLUMN `founder` `founder` int(11) UNSIGNED DEFAULT 0 COMMENT '操作人ID', | ||
105 | +ADD COLUMN `enable_vip` tinyint(3) UNSIGNED DEFAULT 2 COMMENT '是否享受vip折扣:1 根据品牌设置进行折扣 2 开启 3 关闭' AFTER `founder`; | ||
106 | + |
inferface-document/guang/comment.md
0 → 100644
1 | +评论管理接口服务定义 | ||
2 | +--------------------- | ||
3 | + | ||
4 | + | ||
5 | + | ||
6 | +## 评论列表查询 | ||
7 | + | ||
8 | +> 接口名: '/guang/comment/getList' | ||
9 | + | ||
10 | +### 入参 | ||
11 | + | ||
12 | +------------------------- | ||
13 | +|属性名称|类型|例子|说明| | ||
14 | +|--------|----|----|----| | ||
15 | +|condNum|int|1|查询方式,如1表示回复内容,2表示用户名| | ||
16 | +|condContent|String|V2hhdCBmdWNrIG|查询内容| | ||
17 | +|status|int|1|审核状态,0待审核,1审核通过,-1表示屏蔽| | ||
18 | +|page|int|2|页码| | ||
19 | +|size|int|20|每页条数| | ||
20 | +--------------------- | ||
21 | + | ||
22 | +### 返回 | ||
23 | + | ||
24 | +``` json | ||
25 | +{ | ||
26 | + "code":200, | ||
27 | + "message":"操作成功", | ||
28 | + "data": { | ||
29 | + "list": [ | ||
30 | + { | ||
31 | + "id": "2149", //评论id | ||
32 | + "articleId": "4021", //资讯id | ||
33 | + "uid": "8544813", //用户id | ||
34 | + "username": "AJ实力供货", //用户名 | ||
35 | + "content": "喜欢" //评论内容 | ||
36 | + "articleTitle": "联名之作,跑行之旅" //资讯标题 | ||
37 | + "editorName": "38****170@qq.co" //编辑名 | ||
38 | + "status": "1" //状态 | ||
39 | + "operationTime": "1436506078"//操作时间 | ||
40 | + "createTime": "1436079798" //创建时间 | ||
41 | + "auditStatus": "1" //审核状态 | ||
42 | + } | ||
43 | + ] | ||
44 | + } | ||
45 | +} | ||
46 | + | ||
47 | +``` | ||
48 | + | ||
49 | + | ||
50 | +## 评论审核接口 | ||
51 | + | ||
52 | +> 接口名: '/guang/comment/audit' | ||
53 | + | ||
54 | +### 入参 | ||
55 | + | ||
56 | +------------------------- | ||
57 | +|属性名称|类型|例子|说明| | ||
58 | +|--------|----|----|----| | ||
59 | +|id|String|201,202|评论id,批量操作时id以逗号分隔| | ||
60 | +|status|int|1|审核状态,0待审核,1审核通过,-1表示屏蔽| | ||
61 | +--------------------- | ||
62 | + | ||
63 | +### 返回 | ||
64 | + | ||
65 | +``` json | ||
66 | +{ | ||
67 | + "code":200, | ||
68 | + "message":"操作成功!" | ||
69 | +} | ||
70 | + | ||
71 | +``` | ||
72 | + | ||
73 | + | ||
74 | +``` | ||
75 | + | ||
76 | + | ||
77 | +## 获取筛选条件列表接口 | ||
78 | + | ||
79 | +> 接口名: '/guang/comment/getItems' | ||
80 | + | ||
81 | +### 入参 | ||
82 | + | ||
83 | +无 | ||
84 | + | ||
85 | +### 返回 | ||
86 | + | ||
87 | +``` json | ||
88 | +{ | ||
89 | + "code":200, | ||
90 | + "message":"操作成功", | ||
91 | + "data": [ | ||
92 | + { | ||
93 | + "id": "1", | ||
94 | + "text":"回复内容" | ||
95 | + }, | ||
96 | + { | ||
97 | + "id": "2", | ||
98 | + "text":"用户名" | ||
99 | + } | ||
100 | + ... | ||
101 | + ] | ||
102 | + | ||
103 | +} | ||
104 | + | ||
105 | +``` | ||
106 | + | ||
107 | +``` |
inferface-document/guang/plustarcategory
0 → 100644
1 | +plustar分类管理接口服务定义 | ||
2 | +--------------------- | ||
3 | + | ||
4 | + | ||
5 | + | ||
6 | +## plustar分类列表查询 | ||
7 | + | ||
8 | +> 接口名: '/guang/plustarcategory/getList' | ||
9 | + | ||
10 | +### 入参 | ||
11 | + | ||
12 | +------------------------- | ||
13 | +|属性名称|类型|例子|说明| | ||
14 | +|--------|----|----|----| | ||
15 | +|status|int|1|开启状态| | ||
16 | + | ||
17 | +### 返回 | ||
18 | + | ||
19 | +``` json | ||
20 | +{ | ||
21 | + "code":200, | ||
22 | + "message":"操作成功", | ||
23 | + "data": { | ||
24 | + "list": [ | ||
25 | + { | ||
26 | + "id": 4, //分类id | ||
27 | + "categoryName": "设计新潮", //分类名称 | ||
28 | + "contentCode":"b714c25f503ab4e6bc143a42d1404cbb",//资源位码(head) | ||
29 | + "contentCodeFoot":"f5d0b31f4ce77e6f21f47215a88ed22d",//资源位码(foot) | ||
30 | + "createTime": 1447929410, //创建时间 | ||
31 | + "status": 1 //状态 | ||
32 | + } | ||
33 | + ] | ||
34 | + } | ||
35 | +} | ||
36 | + | ||
37 | +``` | ||
38 | + | ||
39 | + | ||
40 | +## 添加plustar分类接口 | ||
41 | + | ||
42 | +> 接口名: '/guang/plustarcategory/addCategory' | ||
43 | + | ||
44 | +### 入参 | ||
45 | + | ||
46 | +------------------------- | ||
47 | +|属性名称|类型|例子|说明| | ||
48 | +|--------|----|----|----| | ||
49 | +|categoryName|String|潮流原创|分类名称| | ||
50 | +|contentCode|String|b714c25f503ab4e6bc143a42d1|资源位码(head)| | ||
51 | +|contentCodeFoot|String|f5d0b31f4ce77e6f21f4721|资源位码(foot)| | ||
52 | +--------------------- | ||
53 | + | ||
54 | +### 返回 | ||
55 | + | ||
56 | +``` json | ||
57 | +{ | ||
58 | + "code":200, | ||
59 | + "message":"添加成功!" | ||
60 | +} | ||
61 | + | ||
62 | +``` | ||
63 | + | ||
64 | + | ||
65 | +## 编辑plustar分类接口 | ||
66 | + | ||
67 | +> 接口名: '/guang/plustarcategory/updateCategory' | ||
68 | + | ||
69 | +### 入参 | ||
70 | + | ||
71 | +------------------------- | ||
72 | +|属性名称|类型|例子|说明| | ||
73 | +|--------|----|----|----| | ||
74 | +|id|int|5|分类ID| | ||
75 | +|categoryName|String|潮流原创|分类名称| | ||
76 | +|contentCode|String|b714c25f503ab4e6bc143a42d1|资源位码(head)| | ||
77 | +|contentCodeFoot|String|f5d0b31f4ce77e6f21f4721|资源位码(foot)| | ||
78 | +--------------------- | ||
79 | + | ||
80 | +### 返回 | ||
81 | + | ||
82 | +``` json | ||
83 | +{ | ||
84 | + "code":200, | ||
85 | + "message":"修改成功!" | ||
86 | +} | ||
87 | + | ||
88 | +``` | ||
89 | + | ||
90 | +## 编辑时plustar分类详情接口 | ||
91 | + | ||
92 | +> 接口名: '/guang/plustarcategory/getDetail' | ||
93 | + | ||
94 | +### 入参 | ||
95 | + | ||
96 | +------------------------- | ||
97 | +|属性名称|类型|例子|说明| | ||
98 | +|--------|----|----|----| | ||
99 | +|id|int|4|分类id| | ||
100 | +--------------------- | ||
101 | + | ||
102 | +### 返回 | ||
103 | + | ||
104 | +``` json | ||
105 | +{ | ||
106 | + "code":200, | ||
107 | + "message":"操作成功", | ||
108 | + "data": { | ||
109 | + "id": 4, //分类id | ||
110 | + "categoryName": "设计新潮", //分类名称 | ||
111 | + "contentCode": "b714c25f503ab4e6bc143a42d1404cbb", //资源位码(head) | ||
112 | + "contentCodeFoot":"f5d0b31f4ce77e6f21f47215a88ed22d",//资源位码(foot) | ||
113 | + "createTime": 1447929410, //创建时间 | ||
114 | + "status": 1 //状态 | ||
115 | + } | ||
116 | +} | ||
117 | + | ||
118 | +``` | ||
119 | + | ||
120 | + | ||
121 | +## 删除plustar分类接口 | ||
122 | + | ||
123 | +> 接口名: '/guang/plustarcategory/delCategory' | ||
124 | + | ||
125 | +### 入参 | ||
126 | + | ||
127 | +------------------------- | ||
128 | +|属性名称|类型|例子|说明| | ||
129 | +|--------|----|----|----| | ||
130 | +|id|int|43|分类id| | ||
131 | +--------------------- | ||
132 | + | ||
133 | +### 返回 | ||
134 | + | ||
135 | +``` json | ||
136 | +{ | ||
137 | + "code":200, | ||
138 | + "message":"删除成功!" | ||
139 | +} | ||
140 | + | ||
141 | +``` | ||
142 | + | ||
143 | +``` |
-
Please register or login to post a comment