Authored by qianjun

update03

@@ -233,20 +233,17 @@ or @@ -233,20 +233,17 @@ or
233 } 233 }
234 234
235 ``` 235 ```
236 -## 删除帮助内容 236 +## 获取所有帮助分类
237 237
238 -> 接口名:`/HelpCategoryRest/addCategory` 238 +> 接口名:`/HelpCategoryRest/getAllHelpCategory`
239 239
240 ### 入参 240 ### 入参
241 ``` json 241 ``` json
242 { 242 {
243 - "id":44 243 +
244 } 244 }
245 ``` 245 ```
246 --------------------------  
247 -|属性名称|类型|例子|说明|  
248 -|--------|----|----|----|  
249 -|id|int|44|帮助内容记录ID| 246 +
250 --------------------- 247 ---------------------
251 248
252 ### 返回 249 ### 返回
@@ -254,36 +251,184 @@ or @@ -254,36 +251,184 @@ or
254 ``` json 251 ``` json
255 { 252 {
256 "code": 200, 253 "code": 200,
257 - "message": "删除成功"  
258 -}  
259 -or  
260 -{  
261 - "code": 400,  
262 - "message": "Id is null"  
263 -}  
264 -or  
265 -{  
266 - "code": 500,  
267 - "message": "删除失败" 254 + "data": [
  255 + {
  256 + "categoryName": "订单问题",
  257 + "createTime": 1456284113,
  258 + "id": 48,
  259 + "parentId": 0,
  260 + "platform": "iphone,android",
  261 + "status": 1,
  262 + "updateTime": 0
  263 + },
  264 + {
  265 + "categoryName": "钱军",
  266 + "createTime": 1456282636,
  267 + "id": 47,
  268 + "parentId": 12,
  269 + "platform": "iphone",
  270 + "status": 1,
  271 + "updateTime": 0
  272 + },
  273 + {
  274 + "categoryName": "订单问题2期项目",
  275 + "createTime": 1456281715,
  276 + "id": 46,
  277 + "parentId": 0,
  278 + "platform": "iphone,android",
  279 + "status": 1,
  280 + "updateTime": 1456283370
  281 + },
  282 + {
  283 + "categoryName": "测试新版重构内容添加",
  284 + "createTime": 1448868521,
  285 + "id": 45,
  286 + "parentId": 16,
  287 + "platform": "iphone,android,h5",
  288 + "status": 1,
  289 + "updateTime": 0
  290 + },
  291 + {
  292 + "categoryName": "第四个二级其他问题修改23",
  293 + "createTime": 1437552851,
  294 + "id": 29,
  295 + "parentId": 20,
  296 + "platform": "iphone,android",
  297 + "status": 1,
  298 + "updateTime": 1437555718
  299 + },
  300 + {
  301 + "categoryName": "订单修改",
  302 + "createTime": 1437547796,
  303 + "id": 25,
  304 + "parentId": 12,
  305 + "platform": "iphone,android",
  306 + "status": 1,
  307 + "updateTime": 1445320680
  308 + },
  309 + {
  310 + "categoryName": "第四个一级",
  311 + "createTime": 1437547671,
  312 + "id": 24,
  313 + "parentId": 0,
  314 + "platform": "iphone,android",
  315 + "status": 1,
  316 + "updateTime": 0
  317 + },
  318 + {
  319 + "categoryName": "优惠券说明",
  320 + "createTime": 1437544461,
  321 + "id": 23,
  322 + "parentId": 20,
  323 + "platform": "iphone,android",
  324 + "status": 1,
  325 + "updateTime": 0
  326 + },
  327 + {
  328 + "categoryName": "YOHO币",
  329 + "createTime": 1437544431,
  330 + "id": 22,
  331 + "parentId": 20,
  332 + "platform": "iphone,android",
  333 + "status": 1,
  334 + "updateTime": 0
  335 + },
  336 + {
  337 + "categoryName": "VIP制度说明",
  338 + "createTime": 1437544417,
  339 + "id": 21,
  340 + "parentId": 20,
  341 + "platform": "iphone,android",
  342 + "status": 1,
  343 + "updateTime": 0
  344 + },
  345 + {
  346 + "categoryName": "其他问题",
  347 + "createTime": 1437544406,
  348 + "id": 20,
  349 + "parentId": 0,
  350 + "platform": "iphone,android",
  351 + "status": 1,
  352 + "updateTime": 0
  353 + },
  354 + {
  355 + "categoryName": "售后服务",
  356 + "createTime": 1437544393,
  357 + "id": 19,
  358 + "parentId": 16,
  359 + "platform": "iphone,android",
  360 + "status": 1,
  361 + "updateTime": 0
  362 + },
  363 + {
  364 + "categoryName": "验货签收",
  365 + "createTime": 1437544382,
  366 + "id": 18,
  367 + "parentId": 16,
  368 + "platform": "iphone,android",
  369 + "status": 1,
  370 + "updateTime": 0
  371 + },
  372 + {
  373 + "categoryName": "常见支付问题",
  374 + "createTime": 1437544366,
  375 + "id": 17,
  376 + "parentId": 16,
  377 + "platform": "iphone,android",
  378 + "status": 1,
  379 + "updateTime": 0
  380 + },
  381 + {
  382 + "categoryName": "购物问题",
  383 + "createTime": 1437544351,
  384 + "id": 16,
  385 + "parentId": 0,
  386 + "platform": "iphone,android",
  387 + "status": 1,
  388 + "updateTime": 0
  389 + },
  390 + {
  391 + "categoryName": "包裹问题",
  392 + "createTime": 1437544304,
  393 + "id": 15,
  394 + "parentId": 12,
  395 + "platform": "iphone,android",
  396 + "status": 1,
  397 + "updateTime": 0
  398 + },
  399 + {
  400 + "categoryName": "物流配送",
  401 + "createTime": 1437544293,
  402 + "id": 14,
  403 + "parentId": 12,
  404 + "platform": "iphone,android",
  405 + "status": 1,
  406 + "updateTime": 0
  407 + },
  408 + {
  409 + "categoryName": "订单问题",
  410 + "createTime": 1437544209,
  411 + "id": 12,
  412 + "parentId": 0,
  413 + "platform": "iphone,android",
  414 + "status": 1,
  415 + "updateTime": 0
  416 + }
  417 + ],
  418 + "message": "All Help Category List"
268 } 419 }
269 ``` 420 ```
270 421
271 -## 分页显示帮助内容 422 +## 获取所有二级分类
272 423
273 -> 接口名:`/HelpContentRest/getHelpContentList` 424 +> 接口名:`/HelpCategoryRest/getSecondCategoryList`
274 425
275 ### 入参 426 ### 入参
276 ``` json 427 ``` json
277 { 428 {
278 - "page":2,  
279 - "size":12 429 +
280 } 430 }
281 ``` 431 ```
282 --------------------------  
283 -|属性名称|类型|例子|说明|  
284 -|--------|----|----|----|  
285 -|page|int|2|第几页(可选) 默认为1|  
286 -|size|int|12|每页条数(可选)默认为10|  
287 --------------------- 432 ---------------------
288 433
289 ### 返回 434 ### 返回
@@ -291,111 +436,123 @@ or @@ -291,111 +436,123 @@ or
291 ``` json 436 ``` json
292 { 437 {
293 "code": 200, 438 "code": 200,
294 - "data": {  
295 - "list": [  
296 - {  
297 - "categoryId": 0,  
298 - "content": "目前暂不支持订单修改功能,请您联系有货客服为您处理。",  
299 - "createTime": 0,  
300 - "id": 0,  
301 - "platform": "iphone,android",  
302 - "title": "订单内容的修改",  
303 - "updateTime": 0  
304 - },  
305 - {  
306 - "categoryId": 0,  
307 - "content": "优惠券是有货线上品牌商城针对不同品牌或商品向消费者发送的虚拟券,优惠券可直接用于指定品牌或商品消费,不可转让他人,不可兑换为现金。",  
308 - "createTime": 0,  
309 - "id": 0,  
310 - "platform": "iphone,android",  
311 - "title": "什么是优惠券?",  
312 - "updateTime": 0  
313 - },  
314 - {  
315 - "categoryId": 0,  
316 - "content": "Yoho币是有货商城全场针对不同商品向已激活用户返还的虚拟购物币。Yoho!币可直接用于有货线上购物使用,不可转让他人,不可兑换为现金。使用YOHO币支付的金额将不计入消费金额用以计算返还金额。",  
317 - "createTime": 0,  
318 - "id": 0,  
319 - "platform": "iphone,android",  
320 - "title": "Yoho币是什么,有什么用?",  
321 - "updateTime": 0  
322 - },  
323 - {  
324 - "categoryId": 0,  
325 - "content": "银卡会员需年度累计消费满600元,金卡会员需年度累计消费满2000元,白金会员需年度累计消费满5000元。年度指连续的365天内(数字年),而非2011,2012这样的自然年。",  
326 - "createTime": 0,  
327 - "id": 0,  
328 - "platform": "iphone,android",  
329 - "title": "消费多少可以成为银卡会员、金卡会员、白金会员?",  
330 - "updateTime": 0  
331 - },  
332 - {  
333 - "categoryId": 0,  
334 - "content": "您可进入“我的订单”,点击”确认收货”后,申请退换货,按页面提示填写相关信息,提交申请。我们会在24小时内以短信或电话的方式告知您审核结果,审核通过后,请您将商品连同发货单一并寄回,请您寄回时不要选择平邮或到付。",  
335 - "createTime": 0,  
336 - "id": 0,  
337 - "platform": "iphone,android",  
338 - "title": "如何办理退换货",  
339 - "updateTime": 0  
340 - },  
341 - {  
342 - "categoryId": 0,  
343 - "content": "有货与配送公司签订先验货后签收协议,请在配送人员还在场的情况下,当面验收您的商品,货到付款订单可以开箱验货但是未签收情况下不能试穿。",  
344 - "createTime": 0,  
345 - "id": 0,  
346 - "platform": "iphone,android",  
347 - "title": "可以开箱验货吗",  
348 - "updateTime": 0  
349 - },  
350 - {  
351 - "categoryId": 0,  
352 - "content": "浦发,深发,民生等银行只要客户设了密码,都是不可以进行交易的;工,农,建等全国性银行中,只有工行肯定是不能交易,别的银行是可以的。如在支付中有任何疑问,请联系有货客服为您处理",  
353 - "createTime": 0,  
354 - "id": 0,  
355 - "platform": "iphone,android",  
356 - "title": "为什么信用卡无法支付",  
357 - "updateTime": 0  
358 - },  
359 - {  
360 - "categoryId": 0,  
361 - "content": "如订单未选择发票需要补寄,请您联系有货客服,我们可以为您补开三个自然月内订单的发票,但是需运费到付。",  
362 - "createTime": 0,  
363 - "id": 0,  
364 - "platform": "iphone,android",  
365 - "title": "补开发票",  
366 - "updateTime": 0  
367 - },  
368 - {  
369 - "categoryId": 0,  
370 - "content": "您可进入“我的订单”中查询订单状态,有货会在订单审核通过后24小时内为您发出包裹。(温馨提示:预售商品发货时间以商品页面标注为准)。",  
371 - "createTime": 0,  
372 - "id": 0,  
373 - "platform": "iphone,android",  
374 - "title": "发货时间",  
375 - "updateTime": 0  
376 - },  
377 - {  
378 - "categoryId": 0,  
379 - "content": "在线支付订单未付款2小时内会自动取消,付款成功后需联系有货客服取消订单,货到付款订单未发货前可以进入“我的订单”自行取消订单。",  
380 - "createTime": 0,  
381 - "id": 0,  
382 - "platform": "iphone,android",  
383 - "title": "取消订单",  
384 - "updateTime": 0  
385 - }  
386 - ],  
387 - "page": 2,  
388 - "size": 12,  
389 - "total": 0,  
390 - "totalPage": 0  
391 - },  
392 - "message": "Help Content List" 439 + "data": [
  440 + {
  441 + "categoryName": "物流配送",
  442 + "createTime": 1437544293,
  443 + "id": 14,
  444 + "parentId": 12,
  445 + "platform": "iphone,android",
  446 + "status": 1,
  447 + "updateTime": 0
  448 + },
  449 + {
  450 + "categoryName": "包裹问题",
  451 + "createTime": 1437544304,
  452 + "id": 15,
  453 + "parentId": 12,
  454 + "platform": "iphone,android",
  455 + "status": 1,
  456 + "updateTime": 0
  457 + },
  458 + {
  459 + "categoryName": "常见支付问题",
  460 + "createTime": 1437544366,
  461 + "id": 17,
  462 + "parentId": 16,
  463 + "platform": "iphone,android",
  464 + "status": 1,
  465 + "updateTime": 0
  466 + },
  467 + {
  468 + "categoryName": "验货签收",
  469 + "createTime": 1437544382,
  470 + "id": 18,
  471 + "parentId": 16,
  472 + "platform": "iphone,android",
  473 + "status": 1,
  474 + "updateTime": 0
  475 + },
  476 + {
  477 + "categoryName": "售后服务",
  478 + "createTime": 1437544393,
  479 + "id": 19,
  480 + "parentId": 16,
  481 + "platform": "iphone,android",
  482 + "status": 1,
  483 + "updateTime": 0
  484 + },
  485 + {
  486 + "categoryName": "VIP制度说明",
  487 + "createTime": 1437544417,
  488 + "id": 21,
  489 + "parentId": 20,
  490 + "platform": "iphone,android",
  491 + "status": 1,
  492 + "updateTime": 0
  493 + },
  494 + {
  495 + "categoryName": "YOHO币",
  496 + "createTime": 1437544431,
  497 + "id": 22,
  498 + "parentId": 20,
  499 + "platform": "iphone,android",
  500 + "status": 1,
  501 + "updateTime": 0
  502 + },
  503 + {
  504 + "categoryName": "优惠券说明",
  505 + "createTime": 1437544461,
  506 + "id": 23,
  507 + "parentId": 20,
  508 + "platform": "iphone,android",
  509 + "status": 1,
  510 + "updateTime": 0
  511 + },
  512 + {
  513 + "categoryName": "订单修改",
  514 + "createTime": 1437547796,
  515 + "id": 25,
  516 + "parentId": 12,
  517 + "platform": "iphone,android",
  518 + "status": 1,
  519 + "updateTime": 1445320680
  520 + },
  521 + {
  522 + "categoryName": "第四个二级其他问题修改23",
  523 + "createTime": 1437552851,
  524 + "id": 29,
  525 + "parentId": 20,
  526 + "platform": "iphone,android",
  527 + "status": 1,
  528 + "updateTime": 1437555718
  529 + },
  530 + {
  531 + "categoryName": "测试新版重构内容添加",
  532 + "createTime": 1448868521,
  533 + "id": 45,
  534 + "parentId": 16,
  535 + "platform": "iphone,android,h5",
  536 + "status": 1,
  537 + "updateTime": 0
  538 + },
  539 + {
  540 + "categoryName": "钱军",
  541 + "createTime": 1456282636,
  542 + "id": 47,
  543 + "parentId": 12,
  544 + "platform": "iphone",
  545 + "status": 1,
  546 + "updateTime": 0
  547 + }
  548 + ],
  549 + "message": "Second Help Category List"
393 } 550 }
394 ``` 551 ```
395 552
396 ## 获取帮助内容总记录数 553 ## 获取帮助内容总记录数
397 554
398 -> 接口名:`/HelpContentRest/getHelpContentCount` 555 +> 接口名:`/HelpCategoryRest/getHelpContentCount`
399 556
400 ### 入参 557 ### 入参
401 558
@@ -413,7 +570,7 @@ or @@ -413,7 +570,7 @@ or
413 570
414 ## 根据分类ID查帮助内容 571 ## 根据分类ID查帮助内容
415 572
416 -> 接口名:`/HelpContentRest/getHelpContentByCategoryId` 573 +> 接口名:`/HelpCategoryRest/getHelpContentByCategoryId`
417 574
418 ### 入参 575 ### 入参
419 ``` json 576 ``` json