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


Ignore:
Timestamp:
03/25/2016 09:34:37 AM (10 years ago)
Author:
zhangguangwen
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • app2.0/getTopics

    v1 v1  
     1== 批量查询爆料点赞、踩、收藏数、评论数 == 
     2 
     3> 线上:http://best.pconline.com.cn/action/topic/getTopics.jsp?ids=2,22,33 
     4 
     5**说明** 
     6 
     7> 根据爆料ID出爆料点赞、踩、收藏数、评论数,批量查询 
     8 
     9**提交方式** 
     10 
     11> get 
     12 
     13**是否需要登录** 
     14 
     15> false 
     16 
     17**缓存方式** 
     18 
     19> 无 
     20 
     21**缓存时间** 
     22 
     23> 无 
     24 
     25**参数** 
     26 
     27||= 参数名 =||= 参数含义 =||= 类型 =||= 默认值 =||= 是否必须 =|| 
     28||ids||爆料id,已英文逗号隔开||string||""||是|| 
     29 
     30 
     31**返回** 
     32{{{#!java 
     33result { 
     34    "data":[ 
     35        { 
     36            "badCount":1,//踩次数 
     37            "commentCount":0,//评论数 
     38            "favoriteCount":1,//收藏数 
     39            "goodCount":7,//点赞数 
     40            "topicId":2//爆料id 
     41        }, 
     42        { 
     43            "badCount":5, 
     44            "commentCount":0, 
     45            "favoriteCount":0, 
     46            "goodCount":4, 
     47            "topicId":11 
     48        }, 
     49        { 
     50            "badCount":0, 
     51            "commentCount":0, 
     52            "favoriteCount":0, 
     53            "goodCount":4, 
     54            "topicId":22 
     55        } 
     56    ], 
     57    "msg":"success",  
     58    "status":1 
     59} 
     60}}} 
     61**返回状态** 
     62||= status =||= msg =||= 说明 =|| 
     63||1||success||请求成功|| 
     64||0||null||结果为空|| 
     65||-1||parameter error||参数错误|| 
     66 
     67