Changes between Version 2 and Version 3 of pcauto_drive_2.3.0/interface


Ignore:
Timestamp:
11/10/2015 10:48:28 AM (10 years ago)
Author:
liguokai
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • pcauto_drive_2.3.0/interface

    v2 v3  
    88     制作地址:[http://zzb.pcauto.com.cn/tools/gongdan/plan.php?id=122] [[BR]]  
    99     应用后端接口trac:[http://rdtrac.pc.com.cn/xueche/wiki/appapi/2.2] 
    10 == 1.学分任务与商城 == 
    11 ---------- 
    12  
    13  
    14 === 1.1我的 === 
    15 '''(接口已完成,请连开发机测试)'''[[BR]] 
    16 >mrobot地址:http://mrobot.pcauto.com.cn/xsp/s/auto/info/xueChe/myScore.xsp [[BR]] 
    17 学车后台开发环境:http://dev38.pcauto.com.cn:8085/driver/appapi/1.0/getUserScore.do  [[BR]] 
    18 学车后台线上环境:http://task.pcauto.com.cn/driver/appapi/1.0/getUserScore.do [[BR]] 
    19  
    20 **说明** 
    21  
    22 > 获取用户学分接口[[BR]] 
    23  
    24 **缓存时间** 
    25  
    26 >分钟 
    27  
    28 **提交方式** 
    29  
    30 > GET 
    31  
    32 **是否登录** 
    33  
    34 > 是 
    35  
    36 **数据来源** 
    37  
    38 > 学车后台 
    39  
    40 **参数** 
    41  
    42 ||= 参数名 =||= 参数含义 =||= 类型 =||= 默认值 =||= 是否必须 =||=说明=|| 
    43 ||= Cookie =||= 用户登录cookie =|| string ||=  =||= 是 =||= 登录用户cookie,放在请求头中 =|| 
    44 ||= userId =||= 用户id =|| string ||=  =||= 是 =||= 用户id =|| 
    45  
    46 **返回** 
    47  
    48 {{{#!java 
    49 { 
    50       "status": 0, 
    51       "message": "成功", 
    52       "version":"版本号", 
    53       "userId": "用户id", 
    54       "score":4000 
    55 } 
    56 }}} 
    57  
    58 **返回参数说明** 
    59 ||= 参数名 =||= 参数含义 =||=参数名=||=参数含意=|| 
     10== 1.cms与论坛 == 
     11---------- 
     12 
     13 
     14=== 1.1科目一首页焦点图 === 
     15'''(接口开发中)'''[[BR]] 
     16>mrobot地址:http://mrobot.pcauto.com.cn/xsp/s/auto/info/xueChe/topArticle.xsp  [[BR]] 
     17cms线上环境:http://www.pcauto.com.cn/client/xcbd/1509/intf7851.js [[BR]] 
     18             http://www.pcauto.com.cn/client/xcbd/1511/intf8071.js [[BR]] 
     19 
     20**说明** 
     21 
     22> 科目首页今日推荐接口 
     23 
     24**缓存时间** 
     25 
     26>0 
     27 
     28**提交方式** 
     29 
     30> GET 
     31 
     32**是否登录** 
     33 
     34> 否 
     35 
     36**数据来源** 
     37 
     38>CMS 
     39 
     40**参数** 
     41 
     42||= 参数名 =||= 参数含义 =||= 类型 =||= 默认值 =||= 是否必须 =||= 说明 =|| 
     43||= subjectId =||= 科目id =|| int ||=  =||= 是 =||= 科目id(科目一:22486,科目二:22505,科目三:22487,科目四:22515,拿本:22695) =|| 
     44 
     45**返回** 
     46 
     47{{{#!java 
     48{ 
     49    "status": 0, 
     50    "message": "操作成功", 
     51    "datas": [ 
     52        { 
     53            "title": "文章", 
     54            "id": 440100, 
     55            "type": 1, 
     56            "img": "http://img0.pcauto.com.cn/pcauto/1507/14/g_6728785_1436863917510_240x160.jpg", 
     57            "url": "http://m.pcauto.com.cn/x/679/6790726.html" 
     58        }, 
     59    ] 
     60} 
     61}}} 
     62**返回参数说明** 
     63||= 参数名 =||= 参数含义 =||=参数名=||=参数含义=|| 
    6064||= status =||= 接口返回状态码:0成功,非0异常 =||= message =||=接口返回描述信息=|| 
    61 ||= score =||= 用户学分 =||= userId =||= 用户id =|| 
    62 ||= version =||= 版本号 =||= =||= =|| 
     65||= id =||= 文章id,帖子id =||= type =||= 跳转类型:1文章页,2话题详情页,3专题页面,4游戏页面,5每日抽奖 =|| 
     66||= tag =||= 只有第一位出,标签 =||= title =||= 标题 =|| 
    6367 
    6468----------