Skip to content

report_admin

echisan edited this page Sep 2, 2018 · 3 revisions

获取举报列表

  • 请求URL

/admin/reports

  • 请求方式

GET

  • 请求参数
请求参数 参数类型 require 参数说明
pn int false pagenumber
ps int false pageSize
type int false 取值有3个(1:待处理,2:已处理:否决 3:已处理:采纳)

请求实例 /admin/reports?ps=1

{
    "code": 0,
    "msg": "OK",
    "data": {
        "reports": [
            {
                "handledTime": null,
                "createTime": 1535898118000,
                "handleStatus": "待处理",
                "publisherUserId": 13,
                "targetType": "回复",
                "managerId": null,
                "id": 6,
                "content": "回复 @pltm:aea",
                "reportReason": "辱骂"
            }
        ],
        "page": {
            "totalSize": 6,
            "pageSize": 1,
            "pageNumber": 1,
            "allTotalSize": 0
        }
    }
}

举报处理

  • 请求URL

/admin/reports/{reportId}

  • 请求方式

POST

  • 请求参数
请求参数 参数类型 require 参数说明
handleType int true 处理类型(2:否决 3:采纳)
reportReason int true 处理原因,目前取值有以下表格)

举报原因取值

取值 描述
1 辱骂
2 色情
3 垃圾广告
4 引战
5 剧透
6 人身攻击
7 隐私侵犯
8 刷屏
9 违法违规
10 低俗
11 赌博诈骗
12 其他
  • 请求示例

admin/reports/1

{
    "handleType":2,
    "reportReason":1,
}

返回数据

{
    code:0,
    data:[],
    msg:"处理成功"
}

Clone this wiki locally