feat: add batch content report processing
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user