feat: add batch content report processing

This commit is contained in:
2026-01-16 17:59:18 +08:00
parent 028c462eaa
commit b796636b5d
11 changed files with 599 additions and 8 deletions

View File

@@ -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": {