package app import ( "github.com/gin-gonic/gin" v1 "lcfns/api/v1" ) type GatewayRouter struct { } func (g *GatewayRouter) InitInfoRouter(Router *gin.RouterGroup) { var gwApi = v1.ApiGroupApp.AppApiGroup.GatewayApi gwGroup := Router.Group("gateways") { gwGroup.GET("all", gwApi.List) gwGroup.PUT("adminSet", gwApi.AdminSet) gwGroup.PUT("userSet", gwApi.UserSet) gwGroup.DELETE("delete", gwApi.DeleteGateways) gwGroup.PUT("unbind", gwApi.UnbindGateways) } }