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

@@ -1421,6 +1421,30 @@ definitions:
- content_ids
- status
type: object
dto.SuperContentReportBatchProcessForm:
properties:
action:
description: Action 处理动作approve/reject
enum:
- approve
- reject
type: string
content_action:
description: ContentAction 内容处置动作block/unpublish/ignore仅在 approve 时生效。
type: string
reason:
description: Reason 处理说明(可选,用于审计记录)。
type: string
report_ids:
description: ReportIDs 待处理举报ID列表。
items:
type: integer
minItems: 1
type: array
required:
- action
- report_ids
type: object
dto.SuperContentReportItem:
properties:
content_id:
@@ -3596,6 +3620,28 @@ paths:
summary: Process content report
tags:
- Content
/super/v1/content-reports/process/batch:
post:
consumes:
- application/json
description: Batch process content report records
parameters:
- description: Batch process form
in: body
name: form
required: true
schema:
$ref: '#/definitions/dto.SuperContentReportBatchProcessForm'
produces:
- application/json
responses:
"200":
description: Processed
schema:
type: string
summary: Batch process content reports
tags:
- Content
/super/v1/contents:
get:
consumes: