Showing
1 changed file
with
40 additions
and
85 deletions
@@ -53,10 +53,11 @@ | @@ -53,10 +53,11 @@ | ||
53 | } | 53 | } |
54 | ``` | 54 | ``` |
55 | 55 | ||
56 | -## 编辑页面展示 | 56 | +## 根据 ID 加载实体 |
57 | > 'entrance/entranceEditPage' | 57 | > 'entrance/entranceEditPage' |
58 | 58 | ||
59 | ### 入参 | 59 | ### 入参 |
60 | + | ||
60 | ----------------------------------------------------------- | 61 | ----------------------------------------------------------- |
61 | |参数名 |必填 |类型 |示例值 |描述 | | 62 | |参数名 |必填 |类型 |示例值 |描述 | |
62 | |------ |---- |---- |------ |---- | | 63 | |------ |---- |---- |------ |---- | |
@@ -64,61 +65,29 @@ | @@ -64,61 +65,29 @@ | ||
64 | 65 | ||
65 | ### 返回 | 66 | ### 返回 |
66 | ``` json | 67 | ``` json |
67 | - | ||
68 | { | 68 | { |
69 | - "code": 200, | ||
70 | - "data": { | ||
71 | - "gender": { | ||
72 | - 1: "手机", | ||
73 | - 2: "ipad" | ||
74 | - }, | ||
75 | - "id": 4, | ||
76 | - "list": { | ||
77 | - "channelId": 4, | ||
78 | - "clickAfterImg": "lif2.png", | ||
79 | - "clickBeforeImg": "lif1.png", | ||
80 | - "createTime": 0, | ||
81 | - "entryName": "家居", | ||
82 | - "gender": "1,2,3", | ||
83 | - "id": 4, | ||
84 | - "orderBy": 4, | ||
85 | - "platform": "1", | ||
86 | - "status": 1, | ||
87 | - "url": "{\"action\":\"go.gender\",\"url\":\"http://m.yohobuy.com/life.html\"}", | ||
88 | - "zipUrl": "http://img12.static.yhbimg.com/yhb-img01/2015/08/19/06/025dce5b3564c67edf864de54510e30080.zip" | ||
89 | - }, | ||
90 | - "platform_type": { | ||
91 | - 1: "手机", | ||
92 | - 2: "ipad" | ||
93 | - } | ||
94 | - }, | ||
95 | - "md5": "45916a47a02eea210394dfb48ea3f06d", | ||
96 | - "message": "操作成功" | 69 | + "code": 200, |
70 | + "data": { | ||
71 | + "channelId": 1, | ||
72 | + "clickAfterImg": "cd.png", | ||
73 | + "clickBeforeImg": ".png", | ||
74 | + "createTime": 1458272012, | ||
75 | + "entryName": "户内", | ||
76 | + "gender": "1,2,3", | ||
77 | + "id": 10, | ||
78 | + "orderBy": 1, | ||
79 | + "platform": "1", | ||
80 | + "status": 0, | ||
81 | + "url": "{\"action\":\"go.h5\",\"url\":\"http://s.yohobuy.com/girls.html\"}", | ||
82 | + "zipUrl": "img02/2015/10/08/10/0114eb2c8581ab3bd58a488f9d73936201.jpg" | ||
83 | + }, | ||
84 | + "md5": "517d012eca496b137a92dab289a8b72b", | ||
85 | + "message": "操作成功" | ||
97 | } | 86 | } |
98 | ``` | 87 | ``` |
99 | -## 新增页面展示 | ||
100 | -> 'entrance/entranceAddPage' | ||
101 | 88 | ||
102 | -### 返回 | ||
103 | - | ||
104 | -``` json | ||
105 | -{ | ||
106 | - "code": 200, | ||
107 | - "data": { | ||
108 | - "gender": { | ||
109 | - 1: "手机", | ||
110 | - 2: "ipad" | ||
111 | - }, | ||
112 | - "platform_type": { | ||
113 | - 1: "手机", | ||
114 | - 2: "ipad" | ||
115 | - } | ||
116 | - }, | ||
117 | - "md5": "37107214947a102a6f4c7ebbc4dfb88b", | ||
118 | - "message": "操作成功" | ||
119 | -} | ||
120 | -``` | ||
121 | ## 更新入口信息 | 89 | ## 更新入口信息 |
90 | + | ||
122 | > 'entrance/updateEntrance' | 91 | > 'entrance/updateEntrance' |
123 | 92 | ||
124 | ### 入参 | 93 | ### 入参 |
@@ -126,17 +95,16 @@ | @@ -126,17 +95,16 @@ | ||
126 | |参数名 |描述|类型 |示例值 |必填 | | 95 | |参数名 |描述|类型 |示例值 |必填 | |
127 | |------ |---- |---- |------ |---- | | 96 | |------ |---- |---- |------ |---- | |
128 | |id |id |Integer | 5 |是| | 97 | |id |id |Integer | 5 |是| |
129 | -|entrance_name |入口名称|String| 测试入口| 是| | ||
130 | -|click_before_img|点击前的图片|String|boy1.png|是| | ||
131 | -|click_after_img|点击后的图片|String|boy2.png|是| | ||
132 | -|url|链接|String|{"action":"go.gender","url":"http://m.yohobuy.com/boys.html"}|是| | ||
133 | -|platform |类别1,"手机";2,"ipad"|String|1|是| | ||
134 | -|order_by |排序,php默认为0|String|1|否| | 98 | +|entryName |入口名称|String| 测试入口| 是| |
99 | +|clickBeforeImg|点击前的图片|String|boy1.png|是| | ||
100 | +|clickAfterImg|点击后的图片|String|boy2.png|是| | ||
101 | +|url |链接|String|{"action":"go.gender","url":"http://m.yohobuy.com/boys.html"}|是| | ||
102 | +|platform |类别1,"手机";2,"ipad"|String|1|是| | ||
103 | +|orderBy |排序,php默认为0|String|1|否| | ||
135 | |status |是否开启1:开启;0:关闭|byte|1|是| | 104 | |status |是否开启1:开启;0:关闭|byte|1|是| |
136 | -|zip_url |压缩包链接|String|img01/2015/08/19/06/015dce5b3564c67edf864de54510e30080.zip|否| | ||
137 | -|channel_id|频道id,php默认为0|int|12|否| | ||
138 | -|genter|平台列表 "1,3":"男";"2,3":"女";"1,2,3":"通用"|String|1,2,3|是| | ||
139 | -|create_time|创建时间|int|12312321|否| | 105 | +|zipUrl |压缩包链接|String|img01/2015/08/19/06/015dce5b3564c67edf864de54510e30080.zip|否| |
106 | +|channelId |频道id,php默认为0|int|12|否| | ||
107 | +|gender |平台列表 "1,3":"男";"2,3":"女";"1,2,3":"通用"|String|1,2,3|是| | ||
140 | 108 | ||
141 | ### 返回 | 109 | ### 返回 |
142 | { | 110 | { |
@@ -147,6 +115,7 @@ | @@ -147,6 +115,7 @@ | ||
147 | } | 115 | } |
148 | 116 | ||
149 | ## 打开、关闭入口 | 117 | ## 打开、关闭入口 |
118 | + | ||
150 | > 'entrance/publishEntrance' | 119 | > 'entrance/publishEntrance' |
151 | 120 | ||
152 | ### 入参 | 121 | ### 入参 |
@@ -170,35 +139,21 @@ | @@ -170,35 +139,21 @@ | ||
170 | > 'entrance/insertEntrance' | 139 | > 'entrance/insertEntrance' |
171 | 140 | ||
172 | ### 入参 | 141 | ### 入参 |
142 | + | ||
173 | ----------------------------------------------------------- | 143 | ----------------------------------------------------------- |
174 | |参数名 |描述|类型 |示例值 |必填 | | 144 | |参数名 |描述|类型 |示例值 |必填 | |
175 | |------ |---- |---- |------ |---- | | 145 | |------ |---- |---- |------ |---- | |
176 | -|entrance_name |入口名称|String| 测试入口| 是| | ||
177 | -|click_before_img|点击前的图片|String|boy1.png|是| | ||
178 | -|click_after_img|点击后的图片|String|boy2.png|是| | ||
179 | -|url|链接|String|{"action":"go.gender","url":"http://m.yohobuy.com/boys.html"}|是| | ||
180 | -|platform |类别1,"手机";2,"ipad"|String|1|是| | ||
181 | -|order_by |排序,php默认为0|String|1|否| | 146 | +|entryName |入口名称|String| 测试入口| 是| |
147 | +|clickBeforeImg|点击前的图片|String|boy1.png|是| | ||
148 | +|clickAfterImg|点击后的图片|String|boy2.png|是| | ||
149 | +|url |链接|String|{"action":"go.gender","url":"http://m.yohobuy.com/boys.html"}|是| | ||
150 | +|platform |类别1,"手机";2,"ipad"|String|1|是| | ||
151 | +|orderBy |排序,php默认为0|String|1|否| | ||
182 | |status |是否开启1:开启;0:关闭|byte|1|是| | 152 | |status |是否开启1:开启;0:关闭|byte|1|是| |
183 | -|zip_url |压缩包链接|String|img01/2015/08/19/06/015dce5b3564c67edf864de54510e30080.zip|否| | ||
184 | -|channel_id|频道id,php默认为0|int|12|否| | ||
185 | -|genter|平台列表 "1,3":"男";"2,3":"女";"1,2,3":"通用"|String|1,2,3|是| | ||
186 | -|create_time|创建时间|int|12312321|否| | 153 | +|zipUrl |压缩包链接|String|img01/2015/08/19/06/015dce5b3564c67edf864de54510e30080.zip|否| |
154 | +|channelId |频道id,php默认为0|int|12|否| | ||
155 | +|gender |平台列表 "1,3":"男";"2,3":"女";"1,2,3":"通用"|String|1,2,3|是| | ||
187 | 156 | ||
188 | -``` json | ||
189 | -{ | ||
190 | - "channelId": "1", | ||
191 | - "clickAfterImg": "cd.png", | ||
192 | - "clickBeforeImg": ".png", | ||
193 | - "entryName": "户内", | ||
194 | - "gender": "1,2,3", | ||
195 | - "orderBy": "1", | ||
196 | - "platform": "1", | ||
197 | - "status": "0", | ||
198 | - "url": "{\"action\":\"go.h5\",\"url\":\"http://s.yohobuy.com/girls.html\"}", | ||
199 | - "zipUrl": "img02/2015/10/08/10/0114eb2c8581ab3bd58a488f9d73936201.jpg" | ||
200 | -} | ||
201 | -``` | ||
202 | ### 返回 | 157 | ### 返回 |
203 | 158 | ||
204 | ``` json | 159 | ``` json |
-
Please register or login to post a comment