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": {
|
||||
|
||||
@@ -386,6 +386,40 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/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",
|
||||
@@ -8149,6 +8183,39 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"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": {
|
||||
|
||||
@@ -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