Showing
1 changed file
with
49 additions
and
73 deletions
@@ -107,20 +107,20 @@ or | @@ -107,20 +107,20 @@ or | ||
107 | } | 107 | } |
108 | ``` | 108 | ``` |
109 | 109 | ||
110 | -## 根据ID获得帮助内容 | 110 | +## 根据ID获得帮助分类 |
111 | 111 | ||
112 | -> 接口名:`/HelpContentRest/getHelpContentById` | 112 | +> 接口名:`/HelpCategoryRest/getHelpCategoryById` |
113 | 113 | ||
114 | ### 入参 | 114 | ### 入参 |
115 | ``` json | 115 | ``` json |
116 | { | 116 | { |
117 | - "id":44 | 117 | + "id":46 |
118 | } | 118 | } |
119 | ``` | 119 | ``` |
120 | ------------------------- | 120 | ------------------------- |
121 | |属性名称|类型|例子|说明| | 121 | |属性名称|类型|例子|说明| |
122 | |--------|----|----|----| | 122 | |--------|----|----|----| |
123 | -|id|int|44|帮助内容记录ID| | 123 | +|id|int|46|帮助分类记录ID| |
124 | --------------------- | 124 | --------------------- |
125 | 125 | ||
126 | ### 返回 | 126 | ### 返回 |
@@ -129,52 +129,38 @@ or | @@ -129,52 +129,38 @@ or | ||
129 | { | 129 | { |
130 | "code": 200, | 130 | "code": 200, |
131 | "data": { | 131 | "data": { |
132 | - "categoryId": 13, | ||
133 | - "content": "如订单未选择发票需要补寄,请您联系有货客服,我们可以为您补开三个自然月内订单的发票,但是需运费到付。", | ||
134 | - "createTime": 1455438073, | ||
135 | - "id": 44, | 132 | + "categoryName": "订单问题2期项目", |
133 | + "createTime": 1456281715, | ||
134 | + "id": 46, | ||
135 | + "parentId": 0, | ||
136 | "platform": [ | 136 | "platform": [ |
137 | "iphone", | 137 | "iphone", |
138 | - "android", | ||
139 | - "h5" | 138 | + "android" |
140 | ], | 139 | ], |
141 | - "title": "补开发票", | ||
142 | - "updateTime": 1455438842 | 140 | + "updateTime": 1456283370 |
143 | }, | 141 | }, |
144 | - "message": "Help Content" | 142 | + "message": "Help Category" |
145 | } | 143 | } |
144 | +or | ||
146 | { | 145 | { |
147 | "code":400 | 146 | "code":400 |
148 | "message":"Id is null" | 147 | "message":"Id is null" |
149 | } | 148 | } |
150 | ``` | 149 | ``` |
151 | -## 获取所有帮助内容 | 150 | +## 根据父id获取帮助分类 |
152 | 151 | ||
153 | -> 接口名:`/HelpContentRest/getAllHelpContent` | 152 | +> 接口名:`/HelpCategoryRest/getCategoryListByPid` |
154 | 153 | ||
155 | ### 入参 | 154 | ### 入参 |
156 | ``` json | 155 | ``` json |
157 | { | 156 | { |
158 | - "categoryId":13, | ||
159 | - "platform":"iphone,android" | ||
160 | -} | ||
161 | -or | ||
162 | -{ | ||
163 | - "categoryId":13, | ||
164 | -} | ||
165 | -or | ||
166 | -{ | ||
167 | - "platform":"iphone,android" | 157 | + "parentId":0 |
168 | } | 158 | } |
169 | -or | ||
170 | -{ } | ||
171 | ``` | 159 | ``` |
172 | -注意:如果不传入参数,必须传入`{}` | ||
173 | ------------------------- | 160 | ------------------------- |
174 | |属性名称|类型|例子|说明| | 161 | |属性名称|类型|例子|说明| |
175 | |--------|----|----|----| | 162 | |--------|----|----|----| |
176 | -|categoryId|int|13|分类ID(可选)| | ||
177 | -|platform|String|iphone,android|显示平台(可选)| | 163 | +|parentId|int|0|父分类ID| |
178 | --------------------- | 164 | --------------------- |
179 | 165 | ||
180 | ### 返回 | 166 | ### 返回 |
@@ -184,82 +170,72 @@ or | @@ -184,82 +170,72 @@ or | ||
184 | "code": 200, | 170 | "code": 200, |
185 | "data": [ | 171 | "data": [ |
186 | { | 172 | { |
187 | - "categoryId": 13, | ||
188 | - "content": "如订单未选择发票需要补寄,请您联系有货客服,我们可以为您补开三个自然月内订单的发票,但是需运费到付。", | ||
189 | - "createTime": 1455438073, | ||
190 | - "id": 44, | ||
191 | - "platform": "iphone,android,h5", | ||
192 | - "status": 1, | ||
193 | - "title": "补开发票", | ||
194 | - "updateTime": 1455438842 | ||
195 | - }, | ||
196 | - { | ||
197 | - "categoryId": 13, | ||
198 | - "content": "4", | ||
199 | - "createTime": 1437566047, | ||
200 | - "id": 17, | 173 | + "categoryName": "订单问题", |
174 | + "createTime": 1437544209, | ||
175 | + "id": 12, | ||
176 | + "parentId": 0, | ||
201 | "platform": "iphone,android", | 177 | "platform": "iphone,android", |
202 | "status": 1, | 178 | "status": 1, |
203 | - "title": "3", | ||
204 | "updateTime": 0 | 179 | "updateTime": 0 |
205 | }, | 180 | }, |
206 | { | 181 | { |
207 | - "categoryId": 13, | ||
208 | - "content": "3", | ||
209 | - "createTime": 1437566035, | 182 | + "categoryName": "购物问题", |
183 | + "createTime": 1437544351, | ||
210 | "id": 16, | 184 | "id": 16, |
185 | + "parentId": 0, | ||
211 | "platform": "iphone,android", | 186 | "platform": "iphone,android", |
212 | "status": 1, | 187 | "status": 1, |
213 | - "title": "2", | ||
214 | "updateTime": 0 | 188 | "updateTime": 0 |
215 | }, | 189 | }, |
216 | { | 190 | { |
217 | - "categoryId": 13, | ||
218 | - "content": "订单生成后无法修改收货人信息,请您联系有货客服处理。", | ||
219 | - "createTime": 1437562842, | ||
220 | - "id": 13, | 191 | + "categoryName": "其他问题", |
192 | + "createTime": 1437544406, | ||
193 | + "id": 20, | ||
194 | + "parentId": 0, | ||
221 | "platform": "iphone,android", | 195 | "platform": "iphone,android", |
222 | "status": 1, | 196 | "status": 1, |
223 | - "title": "修改订单地址/电话", | ||
224 | "updateTime": 0 | 197 | "updateTime": 0 |
225 | }, | 198 | }, |
226 | { | 199 | { |
227 | - "categoryId": 13, | ||
228 | - "content": "因为网络问题,信息更新有所延迟,导致无法显示,请您保持网络顺畅情况下,重新登录进入再查看。", | ||
229 | - "createTime": 1437562792, | ||
230 | - "id": 11, | 200 | + "categoryName": "第四个一级", |
201 | + "createTime": 1437547671, | ||
202 | + "id": 24, | ||
203 | + "parentId": 0, | ||
231 | "platform": "iphone,android", | 204 | "platform": "iphone,android", |
232 | "status": 1, | 205 | "status": 1, |
233 | - "title": "下单后看不到订单", | ||
234 | "updateTime": 0 | 206 | "updateTime": 0 |
235 | }, | 207 | }, |
236 | { | 208 | { |
237 | - "categoryId": 13, | ||
238 | - "content": "目前暂不支持订单修改功能,请您联系有货客服为您处理。", | ||
239 | - "createTime": 1437562767, | ||
240 | - "id": 10, | 209 | + "categoryName": "订单问题2期项目", |
210 | + "createTime": 1456281715, | ||
211 | + "id": 46, | ||
212 | + "parentId": 0, | ||
241 | "platform": "iphone,android", | 213 | "platform": "iphone,android", |
242 | "status": 1, | 214 | "status": 1, |
243 | - "title": "订单内容的修改", | ||
244 | - "updateTime": 0 | 215 | + "updateTime": 1456283370 |
245 | }, | 216 | }, |
246 | { | 217 | { |
247 | - "categoryId": 13, | ||
248 | - "content": "在线支付订单未付款2小时内会自动取消,付款成功后需联系有货客服取消订单,货到付款订单未发货前可以进入“我的订单”自行取消订单。", | ||
249 | - "createTime": 1437545220, | ||
250 | - "id": 1, | 218 | + "categoryName": "订单问题", |
219 | + "createTime": 1456284113, | ||
220 | + "id": 48, | ||
221 | + "parentId": 0, | ||
251 | "platform": "iphone,android", | 222 | "platform": "iphone,android", |
252 | "status": 1, | 223 | "status": 1, |
253 | - "title": "取消订单", | ||
254 | - "updateTime": 1437548510 | 224 | + "updateTime": 0 |
255 | } | 225 | } |
256 | ], | 226 | ], |
257 | - "message": "All Help Content Platform List" | 227 | + "message": "Help Category List" |
258 | } | 228 | } |
229 | +or | ||
230 | +{ | ||
231 | + "code":400 | ||
232 | + "message":"分类ID无效" | ||
233 | +} | ||
234 | + | ||
259 | ``` | 235 | ``` |
260 | ## 删除帮助内容 | 236 | ## 删除帮助内容 |
261 | 237 | ||
262 | -> 接口名:`/HelpContentRest/deleteHelpContent` | 238 | +> 接口名:`/HelpCategoryRest/addCategory` |
263 | 239 | ||
264 | ### 入参 | 240 | ### 入参 |
265 | ``` json | 241 | ``` json |
-
Please register or login to post a comment