添加批量删除渠道功能

This commit is contained in:
CaIon
2023-12-14 16:35:03 +08:00
parent 0fdd4fc6e3
commit e1da1e31d5
4 changed files with 118 additions and 11 deletions

View File

@@ -83,6 +83,7 @@ func SetApiRouter(router *gin.Engine) {
channelRoute.PUT("/", controller.UpdateChannel)
channelRoute.DELETE("/disabled", controller.DeleteDisabledChannel)
channelRoute.DELETE("/:id", controller.DeleteChannel)
channelRoute.POST("/batch", controller.DeleteChannelBatch)
}
tokenRoute := apiRouter.Group("/token")
tokenRoute.Use(middleware.UserAuth())