圈子 举报
优质
小牛编辑
131浏览
2023-12-01
举报列表
GET /reports
响应
status 200
参数
名称 | 类型 | 说明 |
---|---|---|
start | integer | 秒级时间戳,起始筛选时间 |
end | integer | 秒级时间戳,结束筛选时间 |
group_id | integer | 必须 圈子id |
status | integer | 状态 默认全部,0-未处理 1-已处理 2-已驳回 |
limit | integer | 默认 15 ,数据返回条数 |
after | integer | 默认 0 ,翻页标示 |
[
{
"id": 1,// 举报唯一id
"user_id": 1,// 举报人id
"target_id": 1,// 被举报人 id
"group_id": 1,// 圈子id
"resource_id": 67,// type: post-帖子id comment-评论id
"content": "哈哈",// 举报内容
"type": "comment",// 举报类型 post 帖子举报 comment 评论举报
"status": 1, // 举报状态 0 待审核 1 已审核 2 已驳回
"cause": null,// 驳回原因
"handler": 2,// 审核处理人 id
"created_at": "2017-11-30 10:21:52",
"updated_at": "2017-12-01 06:11:24",
"resource": {// 当资源被删除时为null,不为null 如果type是comment commentable_id 为帖子id,type是post 帖子信息
"id": 67,
"user_id": 1,
"target_user": 1,
"reply_user": 1,
"body": "123123",
"commentable_id": 121,
"commentable_type": "group-posts",
"created_at": "2017-12-05 07:03:01",
"updated_at": "2017-12-05 07:03:01"
},// 被举报的资源信息
"user": {// 举报人信息
"id": 1,
"name": "admin",
"bio": null,
"sex": 2,
"location": "四川省 巴中市 南江县",
"created_at": "2017-10-23 01:17:34",
"updated_at": "2017-11-15 07:36:17",
"avatar": "http://thinksns-plus.dev/api/v2/users/1/avatar",
"bg": null,
"verified": {
"type": "user",
"icon": "https://www.xnip.cn/wp-content/uploads/2021/docimg15/39-2cc4fzjcbyl.png",
"description": "1111"
},
"extra": {
"user_id": 1,
"likes_count": 5,
"comments_count": 13,
"followers_count": 0,
"followings_count": 6,
"updated_at": "2017-11-30 03:04:06",
"feeds_count": 33,
"questions_count": 2,
"answers_count": 0,
"checkin_count": 7,
"last_checkin_count": 1
}
},
"target": { // 被举报人信息
"id": 1,
"name": "admin",
"bio": null,
"sex": 2,
"location": "四川省 巴中市 南江县",
"created_at": "2017-10-23 01:17:34",
"updated_at": "2017-11-15 07:36:17",
"avatar": "http://thinksns-plus.dev/api/v2/users/1/avatar",
"bg": null,
"verified": {
"type": "user",
"icon": "https://www.xnip.cn/wp-content/uploads/2021/docimg15/39-2cc4fzjcbyl.png",
"description": "1111"
},
"extra": {
"user_id": 1,
"likes_count": 5,
"comments_count": 13,
"followers_count": 0,
"followings_count": 6,
"updated_at": "2017-11-30 03:04:06",
"feeds_count": 33,
"questions_count": 2,
"answers_count": 0,
"checkin_count": 7,
"last_checkin_count": 1
}
}
}
]
帖子举报
POST /reports/posts/:post
响应
status 201
参数说明
名称 | 类型 | 说明 |
---|---|---|
content | string | 必须 举报内容 |
评论举报
POST /reports/comments/:comment
响应
status 201
参数说明
名称 | 类型 | 说明 |
---|---|---|
content | string | 必须 举报内容 |
举报通过
PATCH /reports/:report/accept
响应
status 201
举报拒绝
PATCH /reports/:report/reject
响应
status 201
举报圈子
POST /groups/:group/reports
可选参数
名称 | 描述 |
---|---|
reason | 举报理由 |
响应
Http Status 201
{
"message": [
"操作成功"
]
}