| Version 3 (modified by pengzhanxuan, 11 years ago) (diff) |
|---|
爆料
按时间获取最近的热门爆料
topic/getTopicListOfTop.do
说明
按时间获取最近的热门爆料
参数
- section 栏目id,-1表示获取首页推荐的热门爆料
- pageNo
- pageSize
- time 从该时间点算起的热门爆料
- hd 是否高清图
返回
Code highlighting:
result {
pageNo: 1,
pageSize: 10,
total: 20,
pageTotal: 2,
msg: '请求成功',
data: [
$topic
]
}
赞或者踩
/topic/likeAndDislike.do
说明
获取爆料分类
参数
- topicId: 123
- operate: 0 赞 1 踩
返回
Code highlighting:
result {
status: 1
msg: '感谢您的投票'
}
栏目爆料列表
topic/getTopicList.do
说明
根据传入的栏目id,获取对应的爆料
请求参数
- pageNo
- pageSize
- sectionId -1 表示推荐(首页)爆料列表
返回
Code highlighting:
result {
status: 1
pageNo: 1
pageSize: 20,
total: 100,
pageTotal: 5,
msg: '请求成功',
sectionId: 2,
data:[
$topic
]
}
爆料详细信息
topic/getTopicInfo.do
说明
参数
- topicId
返回
Code highlighting:
result: {
status: 1
msg: '请求成功',
topicId: 12,
data:{
topic:[$topic]
}
}
获取爆料正文中的图片集
topic/listTopicImages.do
说明
从终端页中获取到所有上传的图片
返回
Code highlighting:
result {
status: 1
total: 100,
msg: '请求成功',
data:[
url:'http://img/pc.com.cn/1.png'
]
}
获取我的爆料
topic/listMyTopic.do
说明
获取我的爆料
参数
- common_session_id
- pageNo
- pageSize
- status 爆料审核状态
返回
Code highlighting:
result {
status: 1
pageNo: 1
pageSize: 20,
total: 100,
pageTotal: 5,
msg: '请求成功',
sectionId: 2,
data:[
$topic
]
}
添加爆料
topic/addTopic.do
说明
添加爆料
参数
- common_session_id 选填
- email 未登录的情况下需要提供邮箱地址
- fromUrl
- content
返回
Code highlighting:
result {
status: 1
msg: '提交成功'
}
获取爆料赞和踩的数量
topic/getTopicLikeAndDislikeCount.do
说明
添加爆料
参数
- topicId
返回
Code highlighting:
result {
status: 1
msg: '请求成功',
goodCount: 12,
badCount: 1,
isVoted: 0 // 是否已投票
}
![(please configure the [header_logo] section in trac.ini)](http://www1.pconline.com.cn/hr/2009/global/images/logo.gif)