Changes between Version 2 and Version 3 of pcauto_4.7.4/interface


Ignore:
Timestamp:
09/16/2015 10:07:42 AM (11 years ago)
Author:
liguokai
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • pcauto_4.7.4/interface

    v2 v3  
    5454||= 参数名 =||= 参数含义 =|| 
    5555||= =||=  =|| 
     56 
     57== 2.资讯 == 
     58---------- 
     59 
     60 
     61=== 2.1栏目接口 === 
     62'''(mrobot已完成,请连开发机进行测试)'''[[BR]] 
     63>mrobot地址:http://mrobot.pcauto.com.cn/v2/cms/channels/{id}?pageNo=1&pageSize=20&v=4.0.0 [[BR]] 
     64例如:http://mrobot.pcauto.com.cn/v2/cms/channels/1?pageNo=1&pageSize=20&v=4.0.0 [[BR]] 
     65cmt开发环境:http://test2.pcauto.com.cn:8002/app/json/ [[BR]] 
     66cmt线上环境:www.pcauto.com.cn/app/21json [[BR]] 
     67 
     68**说明** 
     69 
     70> 此接口为资讯客户端15个栏目集合,涉及参数以及各种情景太多,实在不能穷举,以下只列出新增内容。[[BR]] 
     71> '''对于客户端逻辑,此版本只需要新增一个pageNo的返回值处理,当接口返回JSONObject为文章类型,并且返回pageNo时,打开文章页且跳到对应的pageNo页'''[[BR]] 
     72 
     73**缓存时间** 
     74 
     75>首页列表5分钟,其余栏目30分钟 
     76 
     77**提交方式** 
     78 
     79> GET 
     80 
     81**是否登录** 
     82 
     83> 否 
     84 
     85**数据来源** 
     86 
     87> cms、快搜、cmt、直播后台等等 
     88 
     89**参数** 
     90 
     91请参照客户端旧逻辑,此版本对传入参数无修改。 
     92**返回** 
     93{{{#!java 
     94{ 
     95    "data": [ 
     96        { 
     97            "articleType": "y", 
     98            "channelId": 1, 
     99            "channelName": "头条", 
     100            "count": 0, 
     101            "downs": 0, 
     102            "id": "6929470", 
     103            "image": "http://img0.pcauto.com.cn/pcauto/1509/14/g_6959543_1442223329657_240x160.jpg", 
     104            "pageNo": 3, 
     105            "pubDate": "2013-01-01", 
     106            "title": "测试旧文章", 
     107            "type": 1, 
     108            "ups": 0, 
     109            "url": "http://www.pcauto.com.cn/teach/692/6929470_2.html" 
     110        } 
     111    ], 
     112    "focus": [  
     113        { 
     114            "articleType": "n", 
     115            "id": "1623455", 
     116            "image": "http://img0.pcauto.com.cn/pcauto/app/daogou/1108/201108311.jpg", 
     117            "pubDate": "2011-08-31", 
     118            "title": "哈弗H6挑战比亚迪S6/瑞虎/海马骑士", 
     119            "topicUrl": "http://www.pcauto.com.cn/teach/1108/1622411.html", 
     120            "url": "http://www.pcauto.com.cn/app/daogou/1108/1623455.html" 
     121        } 
     122    ], 
     123    "pageNo": 1, 
     124    "pageSize": 1, 
     125    "topData": [ 
     126        { 
     127            "cc-uri": "http://count.imofan.com/count?url=http://www.pcauto.com.cn/nation/669/6690671.html&ad=132", 
     128            "channelId": 0, 
     129            "channelName": "", 
     130            "count": 0, 
     131            "downs": 0, 
     132            "id": "161", 
     133            "image": "http://img0.pcauto.com.cn/pcauto/1503/15/6055040_567.jpg", 
     134            "isExtend": "0", 
     135            "preView": "央视3·15晚会正在直播 消费在阳光下", 
     136            "pubDate": "2015-03-15", 
     137            "seq": 1, 
     138            "title": "央视3·15晚会直播回顾 消费在阳光下", 
     139            "to-uri": "pcautobrowser://information-article/161?template=live", 
     140            "type": 4, 
     141            "updateAt": 1436284800000, 
     142            "ups": 0 
     143        } 
     144    ], 
     145    "topFocus": [ 
     146        { 
     147            "image": "http://www1.pcauto.com.cn/test/qwegf3wrefgvazv.jpg", 
     148            "seq": 1, 
     149            "title": "驾名爵锐腾1.5T四驱豪华版", 
     150            "to-uri": "http://m.pcauto.com.cn/x/guangzhou/?type=zt&FromApp=1&browser=commonwebview&v=4.5.0", 
     151            "updateAt": 1437408000000 
     152        } 
     153    ], 
     154    "total": 150 
     155} 
     156}}} 
     157 
     158 
     159**返回参数说明** 
     160在data与focus数组内的每一个JSONOject增加以下参数返回[[BR]] 
     161注意:'''pageNo是此版本客户端要新增的处理,客户端同事特别注意。'''[[BR]] 
     162||= 参数名 =||= 参数含义 =|| 
     163||= type =||= 1文章,2帖子,3图集,4直播,5专题,6活动,0其他 =|| 
     164||= to-uri =||= 论坛版块pcautobrowser://bbs-topics/,图库图片pcautobrowser://album-photo/,车系界面pcautobrowser://serial/,车型界面pcautobrowser://model/ =|| 
     165||= pageNo =||= 当type等于1(文章)时,假如有返回pageNo,要跳转到文章相应的pageNo页 =||