| Version 19 (modified by huangchengwei, 10 years ago) (diff) |
|---|
接口索引
1. 车友会提供APP接口4.5
1. 举报管理相关
1.1. 内容举报接口
接口:/appapi/1.0/report/addReport.do [POST]
请求参数:
reporterId: 举报人id [long, not null]
reporterNickname: 举报人昵称 [not null]
targetUserId: 被举报人id [long, not null]
targetUserNickname: 被举报人昵称 [not null]
targetId: 举报内容ID [long, not null](如果是论坛帖子,这个id,传的是楼层的id)
targetExtId: (简单做法:1、如果是相片,这个id,传的就是相片所对应相册的id;2、如果是论坛帖子,这个id,传的就是帖子id;3、其他类型,不需要传)
targetUrl: 举报内容URL
targetType: 举报类型(1:帖子;2:动态;3:话题;4:照片;5:活动;6:投票;7:WebView') [int, not null]
content: 举报原因
otherReson: 其他原因(举报原因和其他原因不能同时为空)[String, maxSize:100]
reportContent:举报内容(即标题)[String, not null maxSize:35]
是否登录 :是
缓存时间 : 否
是否分页 : 否
返回结果:
{
code:0成功,-1失败
message:提示信息
version: 接口版本号如1.0,1.0(latest)表示最新版本
}
2. 用户管理相关
2.1. 用户权限接口
原有接口:/1.0/user/getUserPermission.do
1、添加锁用户判断
2、添加用户爱车信息,最终返回结果:
{
code:0成功,-1失败
message:提示信息
version: 接口版本号如1.0,1.0(latest)表示最新版本
// 新增字段,如果用户被锁,没有该字段
// 认证车主:取认证车型;否则取保存的车型信息;没有就为空
carInfo: {
isVip: 是否认证车主(0-否;1-是)
brandId: 品牌id
brandName: 品牌名
serialId: 车系id
serialName: 车系名
},
// 保持原来字段不变,如果用户被锁,不用有该字段
permissions: [
]
}
3. 论坛提供APP4.5接口
3.1. 删除帖子接口
接口:/appapi/1/post/delete [POST]
请求参数:
topicId: 主题id [long, not null]
postId: 帖子id [long, not null]
是否登录 :是
缓存时间 : 否
是否分页 : 否
返回结果:
{
status:0成功,-1失败
desc:提示信息
}
3.2. 恢复帖子接口
接口:/appapi/1/topic/restore [POST]
请求参数:
topicId: 主题id [long, not null]
postId: 帖子id [long, not null]
deleteAt: 删除时间(时间戳) [long, not null]
是否登录 :是
缓存时间 : 否
是否分页 : 否
返回结果:
{
status:0成功,-1失败
desc:提示信息
}
![(please configure the [header_logo] section in trac.ini)](http://www1.pconline.com.cn/hr/2009/global/images/logo.gif)