feat: add batch content governance actions
This commit is contained in:
@@ -1376,6 +1376,28 @@ definitions:
|
||||
- action
|
||||
- content_ids
|
||||
type: object
|
||||
dto.SuperContentBatchStatusForm:
|
||||
properties:
|
||||
content_ids:
|
||||
description: ContentIDs 待处置内容ID列表。
|
||||
items:
|
||||
type: integer
|
||||
minItems: 1
|
||||
type: array
|
||||
reason:
|
||||
description: Reason 处置说明(可选,用于审计与通知作者)。
|
||||
type: string
|
||||
status:
|
||||
allOf:
|
||||
- $ref: '#/definitions/consts.ContentStatus'
|
||||
description: Status 目标内容状态(unpublished/blocked)。
|
||||
enum:
|
||||
- unpublished
|
||||
- blocked
|
||||
required:
|
||||
- content_ids
|
||||
- status
|
||||
type: object
|
||||
dto.SuperContentReportItem:
|
||||
properties:
|
||||
content_id:
|
||||
@@ -3617,6 +3639,28 @@ paths:
|
||||
summary: Content statistics
|
||||
tags:
|
||||
- Content
|
||||
/super/v1/contents/status/batch:
|
||||
post:
|
||||
consumes:
|
||||
- application/json
|
||||
description: Batch unpublish or block contents
|
||||
parameters:
|
||||
- description: Batch status form
|
||||
in: body
|
||||
name: form
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/dto.SuperContentBatchStatusForm'
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: Updated
|
||||
schema:
|
||||
type: string
|
||||
summary: Batch update content status
|
||||
tags:
|
||||
- Content
|
||||
/super/v1/coupon-grants:
|
||||
get:
|
||||
consumes:
|
||||
|
||||
Reference in New Issue
Block a user