Changes between Version 12 and Version 13 of pcauto_club_4.6.0/api


Ignore:
Timestamp:
12/09/2015 05:20:25 PM (10 years ago)
Author:
liangzhicong
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • pcauto_club_4.6.0/api

    v12 v13  
    350350         } 
    351351      ] 
    352 newestTopics: 
    353 pickList: 
    354  
    355 后端应用接口: 
    356  
     352"newestTopics": [//最新列表 
     353           { 
     354            "author": { 
     355                "isVip": true, 
     356                "name": "xhchen", 
     357                "nickname": "ok呀", 
     358                "userId": 63145, 
     359                "userface": "http://i6.3conline.com/images/upload/upc/face/63/14/5/63145_100x100", 
     360                "validBrandIcon": "http://img0.pcauto.com.cn/pcauto/1112/07/1743776_ACS5050.png" 
     361            }, 
     362            "content": "正文[表情]下一个呢[表情]后面就是上传的图片了\n\n\n\n", 
     363            "createAt": 1431941116000, 
     364            "images": [ 
     365                { 
     366                    "height": 720, 
     367                    "seq": 1, 
     368                    "url": "http://test745.pcauto.com.cn:9191/bbs6/1502/16/c0/3474270_1424050883042_1024x1024.jpg", 
     369                    "width": 482 
     370                } 
     371             ], 
     372             "imagesSize": 1, 
     373             "isPick": false, 
     374             "lastpostAt": 1431941116000, 
     375             "replyCount": 0, 
     376             "title": "普通贴", //PC的主题名 
     377             "appTitle":"app普通贴", //app的主题名 
     378             "topicId": 7808734, 
     379             "uri": "http://localhost.pcauto.com.cn/bbs7/topic-7808734.html" 
     380           }, 
     381] 
     382"pickList": [//最热列表 
     383           { 
     384            "author": { 
     385                "isVip": true, 
     386                "name": "xhchen", 
     387                "nickname": "ok呀", 
     388                "userId": 63145, 
     389                "userface": "http://i6.3conline.com/images/upload/upc/face/63/14/5/63145_100x100", 
     390                "validBrandIcon": "http://img0.pcauto.com.cn/pcauto/1112/07/1743776_ACS5050.png" 
     391            }, 
     392            "content": "正文[表情]下一个呢[表情]后面就是上传的图片了\n\n\n\n", 
     393            "createAt": 1431941116000, 
     394            "images": [ 
     395                { 
     396                    "height": 720, 
     397                    "seq": 1, 
     398                    "url": "http://test745.pcauto.com.cn:9191/bbs6/1502/16/c0/3474270_1424050883042_1024x1024.jpg", 
     399                    "width": 482 
     400                } 
     401             ], 
     402             "imagesSize": 1, 
     403             "isPick": false, 
     404             "lastpostAt": 1431941116000, 
     405             "replyCount": 0, 
     406             "shareCount":10//分享数 
     407             "title": "普通贴", //PC的主题名 
     408             "appTitle":"app普通贴", //app的主题名 
     409             "topicId": 7808734, 
     410             "uri": "http://localhost.pcauto.com.cn/bbs7/topic-7808734.html" 
     411           }, 
     412] 
     413 
     414后端应用接口: 
     415//三个图片链接 
     416http://www.pcauto.com.cn/forum/club/app/1510/intf7931.html 
     417//文字链接 
     418http://www.pcauto.com.cn/forum/club/app/1510/intf7971.html 
     419//焦点图 
     420http://www.pcauto.com.cn/forum/club/activeapp_v2/ 
     421//精选日报: 
     422正常数据 
     423http://www.pcauto.com.cn/forum/club/shequ/wapshequ/1503/intf6627.html 
     424送审数据: 
     425http://www.pcauto.com.cn/forum/club/shequ/wapshequ/1510/intf8011.html 
     4261.2.2 车友圈基本信息 接口/appapi/1/forum/findForumsByIds.do [GET] 
     4271.2.9 获取用户认证信息 接口 /appapi/1/forum/getAuthorsInfo [GET] 
     4281.2.10 获取帖子的前三张图片及主题帖图片总数 接口 /appapi/1/forum/getTopicsImages [GET] 
     429 
     430http://rdtrac.pc.com.cn/autoclub/wiki/appapi/4.6 
     431车友圈页--获取帖子分享数(根据帖子Id)接口:/1.0/dyna/getdynaShareCountByTopicIds.do [GET] 
    357432 
    358433}}} 
    359434    协议参数说明: 
    360435   ||= 参数名 =||= 类型 =||= 必须 =||= 说明 =|| 
     436   ||= pageNo =||int||= 是 =||= 页数 =|| 
    361437 
    362438 
    363439==== 2.4 车友圈详情页 ==== 
    364440{{{ 
    365 接口:  
    366 说明 : 车友圈详情页,添加一个shareCount字段 
    367  
    368 是否分页:是 
    369 是否缓存:是 
    370 是否登陆:否 
    371  
    372 返回结果: 
    373  
    374  
    375 后端应用接口: 
    376  
    377  
    378 }}} 
    379     协议参数说明: 
    380    ||= 参数名 =||= 类型 =||= 必须 =||= 说明 =|| 
     441接口:/xsp/s/club/v4.2/forumsHomePage.xsp?forumId=14674&pageNo=1&pageSize=10&userId=63145&filter=&orderby= 
     442说明 : 板块首页车友圈,置顶,主题列表三大内容集合 
     443 
     444是否分页:否 
     445是否缓存:否 
     446是否登陆:否 
     447请求参数: 
     448         userId: 用户ID 
     449         forumId:板块id 
     450         filter: 选择精华贴时“pick” 其他可以不传 
     451         orderby: 选择最新贴时"postat"发布时间排序, 其它可以不传 
     452         pageNo:  页码 
     453         pageSize:  页码大小 
     454 
     455返回结果: 
     456{ 
     457    code: 0, 
     458    forumList: [ //板块信息 
     459      { 
     460        forumIcon: "http://img.pconline.com.cn/images/upload/upc/tx/auto5/1304/02/c5/19467254_1364888380062_270x202.jpg", 
     461        forumId: 14674, 
     462        forumName: "嘉年华", 
     463        forumUrl: "http://dev11.pcauto.com.cn/bbs7/forum-14674.html", 
     464        latestTopicContent: "22222222222222222222222222222222222222", 
     465        todayNewPostCount: 1597, 
     466        isBound: 0 
     467       } 
     468    ], 
     469    topList: [ //置顶主题 
     470       { 
     471            "containImage": false, 
     472            "isPick": false, 
     473            "title": "提问贴子买车", 
     474            "topicId": 7808466, 
     475            "topicUrl": "http://localhost.pcauto.com.cn/bbs7/topic-7808466.html", 
     476            "updateAt": "2015-05-08 14:04:50" 
     477        } 
     478    ], 
     479    topicList: { //板块主题列表 
     480       { 
     481        "forum": {//板块信息 
     482            "bbs": 19, 
     483            "forumId": 14674, 
     484            "name": "嘉年华论坛", 
     485            "parentId": 298 
     486           }, 
     487        "message": "操作成功", 
     488        "pageNo": 1, 
     489        "pageSize": 50, 
     490        "topicList": [//板块主题列表 
     491           { 
     492            "author": { 
     493                "isVip": true, 
     494                "name": "xhchen", 
     495                "nickname": "ok呀", 
     496                "userId": 63145, 
     497                "userface": "http://i6.3conline.com/images/upload/upc/face/63/14/5/63145_100x100", 
     498                "validBrandIcon": "http://img0.pcauto.com.cn/pcauto/1112/07/1743776_ACS5050.png" 
     499            }, 
     500            "content": "正文[表情]下一个呢[表情]后面就是上传的图片了\n\n\n\n", 
     501            "createAt": 1431941116000, 
     502            "images": [ 
     503                { 
     504                    "height": 720, 
     505                    "seq": 1, 
     506                    "url": "http://test745.pcauto.com.cn:9191/bbs6/1502/16/c0/3474270_1424050883042_1024x1024.jpg", 
     507                    "width": 482 
     508                } 
     509            ], 
     510               "imagesSize": 1, 
     511               "isPick": false, 
     512               "lastpostAt": 1431941116000, 
     513               "replyCount": 0, 
     514               "shareCount":10//分享数 
     515               "title": "普通贴", //PC的主题名 
     516               "appTitle":"app普通贴", //app的主题名 
     517               "topicId": 7808734, 
     518               "uri": "http://localhost.pcauto.com.cn/bbs7/topic-7808734.html" 
     519           }, 
     520     } 
     521     "total": 18048,//主题总数 
     522     code : 0成功,-1失败 
     523     message : 提示信息 
     524     version : 接口版本号如1.0,1.0(latest)表示最新版本 
     525} 
     526    message: "成功", 
     527    version: "v1.0(latest)" 
     528} 
     529 
     530后端应用接口: 
     531车友会 
     532http://rdtrac.pc.com.cn/autoclub/wiki/appapi/4.2 
     5331.1.4 判断用户是否绑定某车友圈 /appapi/1.0/forum/isBound.do [GET] 
     5341.1.5 获取主题对应的动态ID /appapi/1.0/forum/getDynaByTopicId.do 
     5351.2.3 车友圈主题列表 /appapi/1/forum/listTopicsByForumId.do 
     5361.2.4 车友圈置顶主题列表 /appapi/1/forum/getForumTop.do [GET] 
     5371.2.2 车友圈基本信息 接口/appapi/1/forum/findForumsByIds.do [GET] 
     5381.2.9 获取用户认证信息 接口 /appapi/1/forum/getAuthorsInfo [GET] 
     5391.2.10 获取帖子的前三张图片及主题帖图片总数 接口 /appapi/1/forum/getTopicsImages [GET] 
     540 
     541http://rdtrac.pc.com.cn/autoclub/wiki/appapi/4.6 
     542车友圈页--获取帖子分享数(根据帖子Id)接口:/1.0/dyna/getdynaShareCountByTopicIds.do [GET] 
    381543 
    382544