wiki:app2.0/getTopics

Version 2 (modified by zhangguangwen, 10 years ago) (diff)

--

批量查询爆料点赞、踩、收藏数、评论数

线上: http://best.pconline.com.cn/action/topic/getTopics.jsp?ids=2,22,33

说明

根据爆料ID出爆料点赞、踩、收藏数、评论数,批量查询

提交方式

get

是否需要登录

false

缓存方式

缓存时间

参数

参数名 参数含义 类型 默认值 是否必须
ids爆料id,已英文逗号隔开string""

返回

result {
    "data":[
        {
            "badCount":1,//踩次数
            "commentCount":0,//评论数
            "favoriteCount":1,//收藏数
            "goodCount":7,//点赞数
            "topicId":2//爆料id
        },
        {
            "badCount":5,
            "commentCount":0,
            "favoriteCount":0,
            "goodCount":4,
            "topicId":11
        },
        {
            "badCount":0,
            "commentCount":0,
            "favoriteCount":0,
            "goodCount":4,
            "topicId":22
        }
    ],
    "msg":"success", 
    "status":1
}

返回状态

status msg 说明
1success请求成功
0null结果为空
-1parameter error参数错误

收藏接口

线上: http://best.pconline.com.cn/collect/collect.jsp

说明

收藏接口,支持跨域,限制每个用户1秒内请求一次

提交方式

post

是否需要登录

true

缓存方式

缓存时间

参数

参数名 参数含义 类型 默认值 是否必须
topicId爆料idstring""
num爆料idstring""
isCollect/收藏或取消收藏 0取消收藏 1收藏string""

返回

result {
    "data":[
        {
            "badCount":1,//踩次数
            "commentCount":0,//评论数
            "favoriteCount":1,//收藏数
            "goodCount":7,//点赞数
            "topicId":2//爆料id
        },
        {
            "badCount":5,
            "commentCount":0,
            "favoriteCount":0,
            "goodCount":4,
            "topicId":11
        },
        {
            "badCount":0,
            "commentCount":0,
            "favoriteCount":0,
            "goodCount":4,
            "topicId":22
        }
    ],
    "msg":"success", 
    "status":1
}

返回状态

status msg 说明
1success请求成功
0null结果为空
-1parameter error参数错误