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