feat: add batch content report processing
This commit is contained in:
@@ -108,6 +108,12 @@ func (r *Routes) Register(router fiber.Router) {
|
||||
PathParam[int64]("id"),
|
||||
Body[dto.SuperContentReportProcessForm]("form"),
|
||||
))
|
||||
r.log.Debugf("Registering route: Post /super/v1/content-reports/process/batch -> contentReports.BatchProcess")
|
||||
router.Post("/super/v1/content-reports/process/batch"[len(r.Path()):], Func2(
|
||||
r.contentReports.BatchProcess,
|
||||
Local[*models.User]("__ctx_user"),
|
||||
Body[dto.SuperContentReportBatchProcessForm]("form"),
|
||||
))
|
||||
// Register routes for controller: contents
|
||||
r.log.Debugf("Registering route: Get /super/v1/contents -> contents.List")
|
||||
router.Get("/super/v1/contents"[len(r.Path()):], DataFunc1(
|
||||
|
||||
Reference in New Issue
Block a user