feat: add content review flow
This commit is contained in:
@@ -86,3 +86,19 @@ func (c *contents) UpdateStatus(ctx fiber.Ctx, tenantID, contentID int64, form *
|
||||
func (c *contents) Review(ctx fiber.Ctx, user *models.User, id int64, form *dto.SuperContentReviewForm) error {
|
||||
return services.Super.ReviewContent(ctx, user.ID, id, form)
|
||||
}
|
||||
|
||||
// Batch review contents
|
||||
//
|
||||
// @Router /super/v1/contents/review/batch [post]
|
||||
// @Summary Batch review contents
|
||||
// @Description Batch review contents
|
||||
// @Tags Content
|
||||
// @Accept json
|
||||
// @Produce json
|
||||
// @Param form body dto.SuperContentBatchReviewForm true "Batch review form"
|
||||
// @Success 200 {string} string "Reviewed"
|
||||
// @Bind user local key(__ctx_user)
|
||||
// @Bind form body
|
||||
func (c *contents) BatchReview(ctx fiber.Ctx, user *models.User, form *dto.SuperContentBatchReviewForm) error {
|
||||
return services.Super.BatchReviewContents(ctx, user.ID, form)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user