Showing
1 changed file
with
215 additions
and
212 deletions
1 | -# 入口管理 | ||
2 | - | ||
3 | -## 首页列表 | ||
4 | -'entrance/selectEntranceList' | ||
5 | - | ||
6 | -### 入参 | ||
7 | ------------------------------------------------------------ | ||
8 | -|参数名 |必填 |类型 |示例值 |描述 | | ||
9 | -|------ |---- |---- |------ |---- | | ||
10 | -|platform |否 |string | 1 |类别 1:手机 2:ipad| | ||
11 | -|status |否 |string |0 |0:关闭;1:开启 | | ||
12 | - | ||
13 | -### 返回 | ||
14 | - | ||
15 | -``` json | ||
16 | -{ | ||
17 | - "code": 200, | ||
18 | - "data": { | ||
19 | - "entranceManagementBos": [ | ||
20 | - { | ||
21 | - "channelId": 2323, | ||
22 | - "clickAfterImg": "34434", | ||
23 | - "clickBeforeImg": "3434", | ||
24 | - "createTime": 1457068575, | ||
25 | - "entryName": "测试", | ||
26 | - "gender": "1,3", | ||
27 | - "id": 9, | ||
28 | - "orderBy": 232, | ||
29 | - "platform": "2", | ||
30 | - "status": 0, | ||
31 | - "url": "{\"action\":\"go.plus\",\"url\":\"http://admin.portal.yohobuy.com/operations/entrance/add\"}", | ||
32 | - "zipUrl": "http://img12.static.yhbimg.com/yhb-img01/2016/03/04/05/02bdf3bf1da3405725be763540d6601144.jpg" | ||
33 | - } | ||
34 | - ], | ||
35 | - "platform_type": { | ||
36 | - 1: "手机", | ||
37 | - 2: "ipad" | ||
38 | - } | ||
39 | - }, | ||
40 | - "md5": "07b286e15d71960410eb84db52cd69bb" | ||
41 | -} | ||
42 | - | ||
43 | -``` | ||
44 | - | ||
45 | ------------------------------ | ||
46 | -|参数名 |描述 | | ||
47 | -|------ |---- | | ||
48 | -|id |主键 | | ||
49 | -|entrance_name |入口名称 | | ||
50 | -|click_before_img|点击前的图片| | ||
51 | -|click_after_img|点击后的图片| | ||
52 | -|platform |类别1,"手机";2,"ipad"| | ||
53 | -|order_by |排序,php默认为0| | ||
54 | -|status |是否开启1:开启;0:关闭| | ||
55 | -|zip_url |压缩包链接| | ||
56 | -|channel_id|频道id,php默认为0| | ||
57 | -|genter|平台列表 "1,3":"男";"2,3":"女";"1,2,3":"通用"| | ||
58 | -|create_time|创建时间| | ||
59 | - | ||
60 | -## 编辑页面展示 | ||
61 | -'entrance/entranceEditPage' | ||
62 | - | ||
63 | -### 入参 | ||
64 | ------------------------------------------------------------ | ||
65 | -|参数名 |必填 |类型 |示例值 |描述 | | ||
66 | -|------ |---- |---- |------ |---- | | ||
67 | -|id |是 |Integer | 5 |id| | ||
68 | - | ||
69 | -### 返回 | ||
70 | -``` json | ||
71 | - | ||
72 | -{ | ||
73 | - "code": 200, | ||
74 | - "data": { | ||
75 | - "gender": { | ||
76 | - 1: "手机", | ||
77 | - 2: "ipad" | ||
78 | - }, | ||
79 | - "id": 4, | ||
80 | - "list": { | ||
81 | - "channelId": 4, | ||
82 | - "clickAfterImg": "lif2.png", | ||
83 | - "clickBeforeImg": "lif1.png", | ||
84 | - "createTime": 0, | ||
85 | - "entryName": "家居", | ||
86 | - "gender": "1,2,3", | ||
87 | - "id": 4, | ||
88 | - "orderBy": 4, | ||
89 | - "platform": "1", | ||
90 | - "status": 1, | ||
91 | - "url": "{\"action\":\"go.gender\",\"url\":\"http://m.yohobuy.com/life.html\"}", | ||
92 | - "zipUrl": "http://img12.static.yhbimg.com/yhb-img01/2015/08/19/06/025dce5b3564c67edf864de54510e30080.zip" | ||
93 | - }, | ||
94 | - "platform_type": { | ||
95 | - 1: "手机", | ||
96 | - 2: "ipad" | ||
97 | - } | ||
98 | - }, | ||
99 | - "md5": "45916a47a02eea210394dfb48ea3f06d", | ||
100 | - "message": "操作成功" | ||
101 | -} | ||
102 | -``` | ||
103 | -## 新增页面展示 | ||
104 | -'entrance/entranceAddPage' | ||
105 | -### 返回 | ||
106 | - | ||
107 | -``` json | ||
108 | -{ | ||
109 | - "code": 200, | ||
110 | - "data": { | ||
111 | - "gender": { | ||
112 | - 1: "手机", | ||
113 | - 2: "ipad" | ||
114 | - }, | ||
115 | - "platform_type": { | ||
116 | - 1: "手机", | ||
117 | - 2: "ipad" | ||
118 | - } | ||
119 | - }, | ||
120 | - "md5": "37107214947a102a6f4c7ebbc4dfb88b", | ||
121 | - "message": "操作成功" | ||
122 | -} | ||
123 | -``` | ||
124 | -## 更新入口信息 | ||
125 | -'entrance/updateEntrance' | ||
126 | -### 入参 | ||
127 | ------------------------------------------------------------ | ||
128 | -|参数名 |描述|类型 |示例值 |必填 | | ||
129 | -|------ |---- |---- |------ |---- | | ||
130 | -|id |id |Integer | 5 |是| | ||
131 | -|entrance_name |入口名称|String| 测试入口| 是| | ||
132 | -|click_before_img|点击前的图片|String|boy1.png|是| | ||
133 | -|click_after_img|点击后的图片|String|boy2.png|是| | ||
134 | -|url|链接|String|{"action":"go.gender","url":"http://m.yohobuy.com/boys.html"}|是| | ||
135 | -|platform |类别1,"手机";2,"ipad"|String|1|是| | ||
136 | -|order_by |排序,php默认为0|String|1|否| | ||
137 | -|status |是否开启1:开启;0:关闭|byte|1|是| | ||
138 | -|zip_url |压缩包链接|String|img01/2015/08/19/06/015dce5b3564c67edf864de54510e30080.zip|否| | ||
139 | -|channel_id|频道id,php默认为0|int|12|否| | ||
140 | -|genter|平台列表 "1,3":"男";"2,3":"女";"1,2,3":"通用"|String|是| | ||
141 | -|create_time|创建时间|int|12312321|否| | ||
142 | - | ||
143 | -### 返回 | ||
144 | -{ | ||
145 | - "code": 200, | ||
146 | - "data": [], | ||
147 | - "md5": "d751713988987e9331980363e24189ce", | ||
148 | - "message": "更新成功" | ||
149 | -} | ||
150 | - | ||
151 | -## 打开、关闭入口 | ||
152 | -'entrance/publishEntrance' | ||
153 | -### 入参 | ||
154 | - | ||
155 | ------------------------------------------------------------ | ||
156 | -|参数名 |描述|类型 |示例值 |必填 | | ||
157 | -|------ |---- |---- |------ |---- | | ||
158 | -|id |id |Integer | 5 |是| | ||
159 | -|status |1:开启、0:关闭|byte| 1| 是| | ||
160 | - | ||
161 | -### 返回 | ||
162 | -``` json | ||
163 | -{ | ||
164 | - "code": 200, | ||
165 | - "data": [], | ||
166 | - "md5": "d751713988987e9331980363e24189ce", | ||
167 | - "message": "开启成功" | ||
168 | -} | ||
169 | -``` | ||
170 | -## 新增入口 | ||
171 | -'entrance/insertEntrance' | ||
172 | - | ||
173 | -### 入参 | ||
174 | ------------------------------------------------------------ | ||
175 | -|参数名 |描述|类型 |示例值 |必填 | | ||
176 | -|------ |---- |---- |------ |---- | | ||
177 | -|entrance_name |入口名称|String| 测试入口| 是| | ||
178 | -|click_before_img|点击前的图片|String|boy1.png|是| | ||
179 | -|click_after_img|点击后的图片|String|boy2.png|是| | ||
180 | -|url|链接|String|{"action":"go.gender","url":"http://m.yohobuy.com/boys.html"}|是| | ||
181 | -|platform |类别1,"手机";2,"ipad"|String|1|是| | ||
182 | -|order_by |排序,php默认为0|String|1|否| | ||
183 | -|status |是否开启1:开启;0:关闭|byte|1|是| | ||
184 | -|zip_url |压缩包链接|String|img01/2015/08/19/06/015dce5b3564c67edf864de54510e30080.zip|否| | ||
185 | -|channel_id|频道id,php默认为0|int|12|否| | ||
186 | -|genter|平台列表 "1,3":"男";"2,3":"女";"1,2,3":"通用"|String|是| | ||
187 | -|create_time|创建时间|int|12312321|否| | ||
188 | - | ||
189 | -``` json | ||
190 | -{ | ||
191 | - "channelId": "1", | ||
192 | - "clickAfterImg": "cd.png", | ||
193 | - "clickBeforeImg": ".png", | ||
194 | - "entryName": "户内", | ||
195 | - "gender": "1,2,3", | ||
196 | - "orderBy": "1", | ||
197 | - "platform": "1", | ||
198 | - "status": "0", | ||
199 | - "url": "{\"action\":\"go.h5\",\"url\":\"http://s.yohobuy.com/girls.html\"}", | ||
200 | - "zipUrl": "img02/2015/10/08/10/0114eb2c8581ab3bd58a488f9d73936201.jpg" | ||
201 | -} | ||
202 | -``` | ||
203 | -### 返回 | ||
204 | - | ||
205 | -``` json | ||
206 | -{ | ||
207 | - "code": 200, | ||
208 | - "data": [], | ||
209 | - "md5": "d751713988987e9331980363e24189ce", | ||
210 | - "message": "新增成功" | ||
211 | -} | ||
212 | -``` | 1 | +# 入口管理 |
2 | + | ||
3 | +## 首页列表 | ||
4 | +> 'entrance/selectEntranceList' | ||
5 | + | ||
6 | +### 入参 | ||
7 | +----------------------------------------------------------- | ||
8 | +|参数名 |必填 |类型 |示例值 |描述 | | ||
9 | +|------ |---- |---- |------ |---- | | ||
10 | +|platform |否 |string | 1 |类别 1:手机 2:ipad| | ||
11 | +|status |否 |string |0 |0:关闭;1:开启 | | ||
12 | + | ||
13 | +### 返回 | ||
14 | + | ||
15 | +``` json | ||
16 | +{ | ||
17 | + "code": 200, | ||
18 | + "data": { | ||
19 | + "entranceManagementBos": [ | ||
20 | + { | ||
21 | + "channelId": 2323, | ||
22 | + "clickAfterImg": "34434", | ||
23 | + "clickBeforeImg": "3434", | ||
24 | + "createTime": 1457068575, | ||
25 | + "entryName": "测试", | ||
26 | + "gender": "1,3", | ||
27 | + "id": 9, | ||
28 | + "orderBy": 232, | ||
29 | + "platform": "2", | ||
30 | + "status": 0, | ||
31 | + "url": "{\"action\":\"go.plus\",\"url\":\"http://admin.portal.yohobuy.com/operations/entrance/add\"}", | ||
32 | + "zipUrl": "http://img12.static.yhbimg.com/yhb-img01/2016/03/04/05/02bdf3bf1da3405725be763540d6601144.jpg" | ||
33 | + } | ||
34 | + ], | ||
35 | + "platform_type": { | ||
36 | + 1: "手机", | ||
37 | + 2: "ipad" | ||
38 | + } | ||
39 | + }, | ||
40 | + "md5": "07b286e15d71960410eb84db52cd69bb" | ||
41 | +} | ||
42 | + | ||
43 | +``` | ||
44 | + | ||
45 | +----------------------------- | ||
46 | +|参数名 |描述 | | ||
47 | +|------ |---- | | ||
48 | +|id |主键 | | ||
49 | +|entrance_name |入口名称 | | ||
50 | +|click_before_img|点击前的图片| | ||
51 | +|click_after_img|点击后的图片| | ||
52 | +|platform |类别1,"手机";2,"ipad"| | ||
53 | +|order_by |排序,php默认为0| | ||
54 | +|status |是否开启1:开启;0:关闭| | ||
55 | +|zip_url |压缩包链接| | ||
56 | +|channel_id|频道id,php默认为0| | ||
57 | +|genter|平台列表 "1,3":"男";"2,3":"女";"1,2,3":"通用"| | ||
58 | +|create_time|创建时间| | ||
59 | + | ||
60 | +## 编辑页面展示 | ||
61 | +> 'entrance/entranceEditPage' | ||
62 | + | ||
63 | +### 入参 | ||
64 | +----------------------------------------------------------- | ||
65 | +|参数名 |必填 |类型 |示例值 |描述 | | ||
66 | +|------ |---- |---- |------ |---- | | ||
67 | +|id |是 |Integer | 5 |id| | ||
68 | + | ||
69 | +### 返回 | ||
70 | +``` json | ||
71 | + | ||
72 | +{ | ||
73 | + "code": 200, | ||
74 | + "data": { | ||
75 | + "gender": { | ||
76 | + 1: "手机", | ||
77 | + 2: "ipad" | ||
78 | + }, | ||
79 | + "id": 4, | ||
80 | + "list": { | ||
81 | + "channelId": 4, | ||
82 | + "clickAfterImg": "lif2.png", | ||
83 | + "clickBeforeImg": "lif1.png", | ||
84 | + "createTime": 0, | ||
85 | + "entryName": "家居", | ||
86 | + "gender": "1,2,3", | ||
87 | + "id": 4, | ||
88 | + "orderBy": 4, | ||
89 | + "platform": "1", | ||
90 | + "status": 1, | ||
91 | + "url": "{\"action\":\"go.gender\",\"url\":\"http://m.yohobuy.com/life.html\"}", | ||
92 | + "zipUrl": "http://img12.static.yhbimg.com/yhb-img01/2015/08/19/06/025dce5b3564c67edf864de54510e30080.zip" | ||
93 | + }, | ||
94 | + "platform_type": { | ||
95 | + 1: "手机", | ||
96 | + 2: "ipad" | ||
97 | + } | ||
98 | + }, | ||
99 | + "md5": "45916a47a02eea210394dfb48ea3f06d", | ||
100 | + "message": "操作成功" | ||
101 | +} | ||
102 | +``` | ||
103 | +## 新增页面展示 | ||
104 | +> 'entrance/entranceAddPage' | ||
105 | + | ||
106 | +### 返回 | ||
107 | + | ||
108 | +``` json | ||
109 | +{ | ||
110 | + "code": 200, | ||
111 | + "data": { | ||
112 | + "gender": { | ||
113 | + 1: "手机", | ||
114 | + 2: "ipad" | ||
115 | + }, | ||
116 | + "platform_type": { | ||
117 | + 1: "手机", | ||
118 | + 2: "ipad" | ||
119 | + } | ||
120 | + }, | ||
121 | + "md5": "37107214947a102a6f4c7ebbc4dfb88b", | ||
122 | + "message": "操作成功" | ||
123 | +} | ||
124 | +``` | ||
125 | +## 更新入口信息 | ||
126 | +> 'entrance/updateEntrance' | ||
127 | + | ||
128 | +### 入参 | ||
129 | +----------------------------------------------------------- | ||
130 | +|参数名 |描述|类型 |示例值 |必填 | | ||
131 | +|------ |---- |---- |------ |---- | | ||
132 | +|id |id |Integer | 5 |是| | ||
133 | +|entrance_name |入口名称|String| 测试入口| 是| | ||
134 | +|click_before_img|点击前的图片|String|boy1.png|是| | ||
135 | +|click_after_img|点击后的图片|String|boy2.png|是| | ||
136 | +|url|链接|String|{"action":"go.gender","url":"http://m.yohobuy.com/boys.html"}|是| | ||
137 | +|platform |类别1,"手机";2,"ipad"|String|1|是| | ||
138 | +|order_by |排序,php默认为0|String|1|否| | ||
139 | +|status |是否开启1:开启;0:关闭|byte|1|是| | ||
140 | +|zip_url |压缩包链接|String|img01/2015/08/19/06/015dce5b3564c67edf864de54510e30080.zip|否| | ||
141 | +|channel_id|频道id,php默认为0|int|12|否| | ||
142 | +|genter|平台列表 "1,3":"男";"2,3":"女";"1,2,3":"通用"|String|1,2,3|是| | ||
143 | +|create_time|创建时间|int|12312321|否| | ||
144 | + | ||
145 | +### 返回 | ||
146 | +{ | ||
147 | + "code": 200, | ||
148 | + "data": [], | ||
149 | + "md5": "d751713988987e9331980363e24189ce", | ||
150 | + "message": "更新成功" | ||
151 | +} | ||
152 | + | ||
153 | +## 打开、关闭入口 | ||
154 | +> 'entrance/publishEntrance' | ||
155 | + | ||
156 | +### 入参 | ||
157 | + | ||
158 | +----------------------------------------------------------- | ||
159 | +|参数名 |描述|类型 |示例值 |必填 | | ||
160 | +|------ |---- |---- |------ |---- | | ||
161 | +|id |id |Integer | 5 |是| | ||
162 | +|status |1:开启、0:关闭|byte| 1| 是| | ||
163 | + | ||
164 | +### 返回 | ||
165 | +``` json | ||
166 | +{ | ||
167 | + "code": 200, | ||
168 | + "data": [], | ||
169 | + "md5": "d751713988987e9331980363e24189ce", | ||
170 | + "message": "开启成功" | ||
171 | +} | ||
172 | +``` | ||
173 | +## 新增入口 | ||
174 | +> 'entrance/insertEntrance' | ||
175 | + | ||
176 | +### 入参 | ||
177 | +----------------------------------------------------------- | ||
178 | +|参数名 |描述|类型 |示例值 |必填 | | ||
179 | +|------ |---- |---- |------ |---- | | ||
180 | +|entrance_name |入口名称|String| 测试入口| 是| | ||
181 | +|click_before_img|点击前的图片|String|boy1.png|是| | ||
182 | +|click_after_img|点击后的图片|String|boy2.png|是| | ||
183 | +|url|链接|String|{"action":"go.gender","url":"http://m.yohobuy.com/boys.html"}|是| | ||
184 | +|platform |类别1,"手机";2,"ipad"|String|1|是| | ||
185 | +|order_by |排序,php默认为0|String|1|否| | ||
186 | +|status |是否开启1:开启;0:关闭|byte|1|是| | ||
187 | +|zip_url |压缩包链接|String|img01/2015/08/19/06/015dce5b3564c67edf864de54510e30080.zip|否| | ||
188 | +|channel_id|频道id,php默认为0|int|12|否| | ||
189 | +|genter|平台列表 "1,3":"男";"2,3":"女";"1,2,3":"通用"|String|1,2,3|是| | ||
190 | +|create_time|创建时间|int|12312321|否| | ||
191 | + | ||
192 | +``` json | ||
193 | +{ | ||
194 | + "channelId": "1", | ||
195 | + "clickAfterImg": "cd.png", | ||
196 | + "clickBeforeImg": ".png", | ||
197 | + "entryName": "户内", | ||
198 | + "gender": "1,2,3", | ||
199 | + "orderBy": "1", | ||
200 | + "platform": "1", | ||
201 | + "status": "0", | ||
202 | + "url": "{\"action\":\"go.h5\",\"url\":\"http://s.yohobuy.com/girls.html\"}", | ||
203 | + "zipUrl": "img02/2015/10/08/10/0114eb2c8581ab3bd58a488f9d73936201.jpg" | ||
204 | +} | ||
205 | +``` | ||
206 | +### 返回 | ||
207 | + | ||
208 | +``` json | ||
209 | +{ | ||
210 | + "code": 200, | ||
211 | + "data": [], | ||
212 | + "md5": "d751713988987e9331980363e24189ce", | ||
213 | + "message": "新增成功" | ||
214 | +} | ||
215 | +``` |
-
Please register or login to post a comment