Changes between Version 1 and Version 2 of app2.0/getTopics


Ignore:
Timestamp:
03/25/2016 10:36:08 AM (10 years ago)
Author:
zhangguangwen
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • app2.0/getTopics

    v1 v2  
    6666 
    6767 
     68---- 
     69== 收藏接口 == 
     70 
     71> 线上:http://best.pconline.com.cn/collect/collect.jsp 
     72 
     73**说明** 
     74 
     75> 收藏接口,支持跨域,限制每个用户1秒内请求一次 
     76 
     77**提交方式** 
     78 
     79> post 
     80 
     81**是否需要登录** 
     82 
     83> true 
     84 
     85**缓存方式** 
     86 
     87> 无 
     88 
     89**缓存时间** 
     90 
     91> 无 
     92 
     93**参数** 
     94 
     95||= 参数名 =||= 参数含义 =||= 类型 =||= 默认值 =||= 是否必须 =|| 
     96||topicId||爆料id||string||""||是|| 
     97||num||爆料id||string||""||是|| 
     98||isCollect||/收藏或取消收藏 0取消收藏 1收藏||string||""||是|| 
     99 
     100 
     101**返回** 
     102{{{#!java 
     103result { 
     104    "data":[ 
     105        { 
     106            "badCount":1,//踩次数 
     107            "commentCount":0,//评论数 
     108            "favoriteCount":1,//收藏数 
     109            "goodCount":7,//点赞数 
     110            "topicId":2//爆料id 
     111        }, 
     112        { 
     113            "badCount":5, 
     114            "commentCount":0, 
     115            "favoriteCount":0, 
     116            "goodCount":4, 
     117            "topicId":11 
     118        }, 
     119        { 
     120            "badCount":0, 
     121            "commentCount":0, 
     122            "favoriteCount":0, 
     123            "goodCount":4, 
     124            "topicId":22 
     125        } 
     126    ], 
     127    "msg":"success",  
     128    "status":1 
     129} 
     130}}} 
     131**返回状态** 
     132||= status =||= msg =||= 说明 =|| 
     133||1||success||请求成功|| 
     134||0||null||结果为空|| 
     135||-1||parameter error||参数错误||