Changes between Version 2 and Version 3 of pcauto_drive_1.1.0/interface


Ignore:
Timestamp:
05/25/2015 12:19:18 PM (11 years ago)
Author:
liguokai
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • pcauto_drive_1.1.0/interface

    v2 v3  
    8686    
    8787}}} 
     88 
     89=== 2.4 [=#point2.4 获取评论列表json接口] === 
     90(开发已完成,测试请连开发机代理) 
     91{{{ 
     92    请求url:http://mrobot.pcauto.com.cn/xsp/x/192.168.33.60:8081/interface/app/getCommentByQuestionId.jsp?questionId=3&page=2&size=2 
     93    HTTP请求方式:GET 
     94    是否需要登录:false 
     95    返回格式:json 
     96    缓存方式:无 
     97    缓存时间:无   
     98    请求参数: 
     99    “questionId” : 3   (题库id) 
     100    “page”:1        (第几页) 
     101    “size” : 20     (获取几条数据,小于等于20) 
     102    (注明:一页最多20条评论,分页请求) 
     103    返回结果: 
     104    { 
     105    "code": 0,(0正常,-1异常) 
     106   “message":提示信息, 
     107   “pageSize":每页条数, 
     108   “pageCount":总共几页, 
     109 
     110    "topicList": [ 
     111        { 
     112            "dynaInfoId":评论id, 
     113            "nickName": "作者名称", 
     114            "topicContent": "评论内容", 
     115            "praiseCount":"点赞数", 
     116            "publishTime": “发布时间", 
     117            "replayList": [ 
     118             { 
     119             replayId: 回复id 
     120             name:  回复人名称 
     121             replayContent: 回复内容 
     122             replayTime: 回复时间 
     123             } 
     124             ], 
     125        }, 
     126        { 
     127            "dynaInfoId":10, 
     128            "nickName": "小红", 
     129            "topicContent": "评论内容", 
     130            "praiseCount":5, 
     131            "publishTime": "2015-05-13 17:15", 
     132            "replayList": [ 
     133             { 
     134             replayId: 2 
     135             name:  小明 
     136             replayContent: 回复内容 
     137             replayTime: "2015-05-15 17:58" 
     138             } 
     139             ] 
     140         } 
     141      ] 
     142   } 
     143    
     144}}}