feat: add batch content report processing
This commit is contained in:
@@ -392,6 +392,40 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"/super/v1/content-reports/process/batch": {
|
||||
"post": {
|
||||
"description": "Batch process content report records",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"Content"
|
||||
],
|
||||
"summary": "Batch process content reports",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "Batch process form",
|
||||
"name": "form",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/dto.SuperContentReportBatchProcessForm"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "Processed",
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/super/v1/content-reports/{id}/process": {
|
||||
"post": {
|
||||
"description": "Process a content report record",
|
||||
@@ -8155,6 +8189,39 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"dto.SuperContentReportBatchProcessForm": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"action",
|
||||
"report_ids"
|
||||
],
|
||||
"properties": {
|
||||
"action": {
|
||||
"description": "Action 处理动作(approve/reject)。",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"approve",
|
||||
"reject"
|
||||
]
|
||||
},
|
||||
"content_action": {
|
||||
"description": "ContentAction 内容处置动作(block/unpublish/ignore),仅在 approve 时生效。",
|
||||
"type": "string"
|
||||
},
|
||||
"reason": {
|
||||
"description": "Reason 处理说明(可选,用于审计记录)。",
|
||||
"type": "string"
|
||||
},
|
||||
"report_ids": {
|
||||
"description": "ReportIDs 待处理举报ID列表。",
|
||||
"type": "array",
|
||||
"minItems": 1,
|
||||
"items": {
|
||||
"type": "integer"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"dto.SuperContentReportItem": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
||||
Reference in New Issue
Block a user