feat: add batch content report processing

This commit is contained in:
2026-01-16 17:59:18 +08:00
parent 028c462eaa
commit b796636b5d
11 changed files with 599 additions and 8 deletions

View File

@@ -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)
}