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