| Version 7 (modified by pengzhanxuan, 11 years ago) (diff) |
|---|
Table of Contents
收藏
收藏
/app/my/collect/collectForApp.do
说明
收藏
提交方式
POST
参数
| 参数名 | 参数含义 | 类型 | 默认值 | 是否必须 |
|---|---|---|---|---|
| common_session_id | - | String | "" | 是 |
| topicId | 爆料id | int | 0 | 是 |
返回
result {
status: 1,
msg: '收藏成功'
}
取消收藏
/app/my/collect/decollectForApp.do
说明
取消收藏
提交方式
POST
参数
| 参数名 | 参数含义 | 类型 | 默认值 | 是否必须 |
|---|---|---|---|---|
| common_session_id | - | String | "" | 是 |
| topicId | 爆料id | int | 0 | 是 |
返回
result {
status: 1,
msg: '取消收藏成功'
}
获取收藏列表
/app/my/collect/listCollects.do
说明
获取收藏列表
提交方式
GET
参数
| 参数名 | 参数含义 | 类型 | 默认值 | 是否必须 |
|---|---|---|---|---|
| pageNo | 页数 | int | 1 | 否 |
| pageSize | 页面大小 | int | 10 | 否 |
| common_session_id | - | String | "" | 是 |
| index | 0 优惠 1 海淘 2 发现 3 晒物 4 经验 | int | 0 | 否 |
返回
result {
pageNo: 1,
pageSize: 10,
total: 20,
pageTotal: 2,
msg: '请求成功',
data: [
$collect
]
}
获取用户各个频道的收藏数量
/app/my/collect/countCollects.do
说明
获取收藏列表
提交方式
GET
参数
| 参数名 | 参数含义 | 类型 | 默认值 | 是否必须 |
|---|---|---|---|---|
| common_session_id | - | String | "" | 是 |
返回
result {
status: 1
msg: '请求成功',
data: [$sectionExtend]
}
获取某个爆料的收藏数量
/app/collect/getTopicCollectCount.do
说明
获取某个爆料的收藏数量
提交方式
GET
参数
| 参数名 | 参数含义 | 类型 | 默认值 | 是否必须 |
|---|---|---|---|---|
| common_session_id | - | String | "" | 是 |
| topicId | 爆料id | int | 0 | 是 |
返回
result {
status: 1
msg: '请求成功',
hasCollect: 0, // 0 表示未收藏 1 表示已收藏
count: 12
}
判断用是否已收藏爆料
/app/my/collect/getTopicCollectCount.do
说明
获取某个爆料的收藏数量
提交方式
GET
参数
| 参数名 | 参数含义 | 类型 | 默认值 | 是否必须 |
|---|---|---|---|---|
| common_session_id | - | String | "" | 是 |
| topicId | 爆料id | int | 0 | 是 |
返回
result {
status: 1
msg: '请求成功',
hasCollect: 0, // 0 表示未收藏 1 表示已收藏
}
![(please configure the [header_logo] section in trac.ini)](http://www1.pconline.com.cn/hr/2009/global/images/logo.gif)