feat: add batch content governance actions

This commit is contained in:
2026-01-16 14:19:43 +08:00
parent e5f40287c3
commit daaacc3fa4
11 changed files with 431 additions and 3 deletions

View File

@@ -116,3 +116,19 @@ func (c *contents) Review(ctx fiber.Ctx, user *models.User, id int64, form *dto.
func (c *contents) BatchReview(ctx fiber.Ctx, user *models.User, form *dto.SuperContentBatchReviewForm) error {
return services.Super.BatchReviewContents(ctx, user.ID, form)
}
// Batch update content status
//
// @Router /super/v1/contents/status/batch [post]
// @Summary Batch update content status
// @Description Batch unpublish or block contents
// @Tags Content
// @Accept json
// @Produce json
// @Param form body dto.SuperContentBatchStatusForm true "Batch status form"
// @Success 200 {string} string "Updated"
// @Bind user local key(__ctx_user)
// @Bind form body
func (c *contents) BatchUpdateStatus(ctx fiber.Ctx, user *models.User, form *dto.SuperContentBatchStatusForm) error {
return services.Super.BatchUpdateContentStatus(ctx, user.ID, form)
}