feat: add batch content report processing
This commit is contained in:
@@ -45,3 +45,19 @@ func (c *contentReports) List(ctx fiber.Ctx, filter *dto.SuperContentReportListF
|
||||
func (c *contentReports) Process(ctx fiber.Ctx, user *models.User, id int64, form *dto.SuperContentReportProcessForm) error {
|
||||
return services.Super.ProcessContentReport(ctx, user.ID, id, form)
|
||||
}
|
||||
|
||||
// Batch process content reports
|
||||
//
|
||||
// @Router /super/v1/content-reports/process/batch [post]
|
||||
// @Summary Batch process content reports
|
||||
// @Description Batch process content report records
|
||||
// @Tags Content
|
||||
// @Accept json
|
||||
// @Produce json
|
||||
// @Param form body dto.SuperContentReportBatchProcessForm true "Batch process form"
|
||||
// @Success 200 {string} string "Processed"
|
||||
// @Bind user local key(__ctx_user)
|
||||
// @Bind form body
|
||||
func (c *contentReports) BatchProcess(ctx fiber.Ctx, user *models.User, form *dto.SuperContentReportBatchProcessForm) error {
|
||||
return services.Super.BatchProcessContentReports(ctx, user.ID, form)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user