Changes between Version 6 and Version 7 of price_jiekou


Ignore:
Timestamp:
07/19/2013 10:50:46 AM (13 years ago)
Author:
chenyu
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • price_jiekou

    v6 v7  
    4747}}} 
    4848 
    49 === 1.2 终端页接口 === 
     49=== 1.2文章列表接口 === 
     50{{{ 
     51    请求参数: 分类 
     52    请求方法:get 
     53    是否需要登录:否 
     54    返回参数: 
     55{ 
     56    "pageCount":"9", 
     57    "pageNo":"1", 
     58    "data":[ 
     59        { 
     60            "commentNum":"0", 
     61            "id":"2395585", 
     62            "title":"“BMW大师殿堂”杨丽萍舞剧《孔雀》在陕西惊艳登场", 
     63            "image":"http://img0.pcauto.com.cn/pcauto/1303/15/2395585_1.png", 
     64            "pubDate":"2013-02-03",        //时间 
     65            "wroth":"1",    //值的数量 
     66            "price":"160元包邮"    //价格 
     67        } 
     68    ], 
     69    "pageSize":"20" 
     70} 
     71 
     72}}} 
     73 
     74=== 1.3 终端页接口 === 
    5075{{{ 
    5176请求方法:get 
     
    5681}}} 
    5782 
    58 1.3 通行证登陆接口 
     83=== 1.4 评论列表接口 === 
     84{{{ 
     85 HTTP请求方式:get 
     86    是否需要登录:否 
     87    提交参数: 
     88            topicId: 评论id  
     89            articleId: 文章id 
    5990 
    60 1.4 通行证资料更换接口 
     91返回数据: 
     92{ 
     93  "comments": [ 
     94    {  //没有引用其他评论的评论 
     95      "1": { //表达其引用关系的key 
     96        "id":"24991904",//帖子id 
     97        "name": "不是网易的江苏省盐城市网友 帅气飞扬: ",  //用户名称 
     98        "floor": "1737",  //楼层 
     99        "time": "2013-01-05 09:05:40",  //时间 
     100        "content": "内容过于暴力,已和谐" //内容 
     101      }, 
     102      "current":"1",               //当前最外层引用标识 
     103      "support":"10086"       //"顶"数量 
     104      "expand":false  //判断是否展开,默认为false 
     105    }, 
     106    { 
     107      "3": { 
     108        "id":"24991804",//帖子id 
     109        "name": "不是网易的江苏省盐城市网友 帅气飞扬: ", 
     110        "floor": "1737", 
     111        "time": "2013-01-05 09:05:40", 
     112        "content": "内容过于暴力,已和谐" 
     113      }, 
     114      "2": { 
     115        "id":"24941904",//帖子id 
     116        "name": "不是网易的江苏省盐城市网友 帅气飞扬: ", 
     117        "floor": "1737", 
     118        "time": "2013-01-05 09:05:40", 
     119        "content": "内容过于暴力,已和谐" 
     120      }, 
     121      "1": { 
     122        "id":"24491904",//帖子id 
     123        "name": "不是网易的江苏省盐城市网友 帅气飞扬: ", 
     124        "floor": "1737", 
     125        "time": "2013-01-05 09:05:40", 
     126        "content": "内容过于暴力,已和谐" 
     127      }, 
     128      "4": { 
     129        "id":"24993904",//帖子id 
     130        "name": "不是网易的江苏省盐城市网友 帅气飞扬: ", 
     131        "floor": "1737", 
     132        "time": "2013-01-05 09:05:40", 
     133        "content": "内容过于暴力,已和谐" 
     134      }, 
     135      "current":"4", 
     136      "support":"10086" //顶数 
     137      "expand":false  //判断是否展开,默认为false 
     138    } 
     139  ], 
     140  "hot-comments": [ 
     141    {  //没有引用其他评论的评论 
     142      "1": { //表达其引用关系的key 
     143        "id":"24691904",//帖子id 
     144        "name": "不是网易的江苏省盐城市网友 帅气飞扬: ",  //用户名称 
     145        "floor": "1737",  //楼层 
     146        "time": "2013-01-05 09:05:40",  //时间 
     147        "content": "内容过于暴力,已和谐" //内容 
     148      }, 
     149      "current":"1" 
     150      "support":"10086" //顶数 
     151      "expand":false  //判断是否展开,默认为false 
     152    } 
     153  ], 
     154  "docUrl": "http://im_an_artical" 
     155} 
    61156 
    62 1.5 评论列表接口 
     157备注: 
    63158 
    64 1.6 发评论接口 
     159}}} 
    65160 
    66 1.7 摇一摇接口 
     1611.5 发评论接口 
     162{{{ 
     163http://cmt.pcauto.com.cn/action/comment/create_utf8.jsp 
     164HTTP请求方式:post 
     165    是否需要登录:否 
     166    提交参数:话题id, 话题url, 标题, 用户名, 是否登录, columnId, 内容, 回复楼层 (通过body传参) 
     167 
     168    返回数据: 
     169{ 
     170    "commentId":25705754, 
     171    "floor":27, 
     172    "showName":"iostester", 
     173    "brief":"Really good car hm~~~", 
     174    "status":0, 
     175    "createTime":"2013-07-19 10:37:03", 
     176    "resultCode":0, 
     177    "resultMsg":"您的评论已经成功发表。注:评论在审核后才能出现在列表中,谢谢!", 
     178    "userId":25520497 
     179} 
     180 
     181}}} 
     182 
     1831.6 摇一摇接口