gateway.go 475 B

123456789101112131415161718192021
  1. package app
  2. import (
  3. "github.com/gin-gonic/gin"
  4. v1 "lcfns/api/v1"
  5. )
  6. type GatewayRouter struct {
  7. }
  8. func (g *GatewayRouter) InitInfoRouter(Router *gin.RouterGroup) {
  9. var gwApi = v1.ApiGroupApp.AppApiGroup.GatewayApi
  10. gwGroup := Router.Group("gateways")
  11. {
  12. gwGroup.GET("all", gwApi.List)
  13. gwGroup.PUT("adminSet", gwApi.AdminSet)
  14. gwGroup.PUT("userSet", gwApi.UserSet)
  15. gwGroup.DELETE("delete", gwApi.DeleteGateways)
  16. gwGroup.PUT("unbind", gwApi.UnbindGateways)
  17. }
  18. }