feat: Implement batch tagging functionality for channels
- Added a new endpoint to batch set tags for multiple channels, allowing users to update tags efficiently. - Introduced a new `BatchSetChannelTag` function in the controller to handle incoming requests and validate parameters. - Updated the `BatchSetChannelTag` method in the model to manage database transactions and ensure data integrity during tag updates. - Enhanced the ChannelsTable component in the frontend to support batch tag setting, including UI elements for user interaction. - Updated localization files to include new translation keys related to batch operations and tag settings.
This commit is contained in:
@@ -99,7 +99,7 @@ func SetApiRouter(router *gin.Engine) {
|
||||
channelRoute.POST("/fix", controller.FixChannelsAbilities)
|
||||
channelRoute.GET("/fetch_models/:id", controller.FetchUpstreamModels)
|
||||
channelRoute.POST("/fetch_models", controller.FetchModels)
|
||||
|
||||
channelRoute.POST("/batch/tag", controller.BatchSetChannelTag)
|
||||
}
|
||||
tokenRoute := apiRouter.Group("/token")
|
||||
tokenRoute.Use(middleware.UserAuth())
|
||||
|
||||
Reference in New Issue
Block a user