v1.go 332 B

1234567891011121314
  1. package v1
  2. import (
  3. "baize-demo/project/gateway/api/v1/example"
  4. "git.sxidc.com/go-framework/baize/framework/core/api"
  5. "git.sxidc.com/go-framework/baize/framework/gateway"
  6. )
  7. type Router struct{}
  8. func (router *Router) Init(gw *gateway.Gateway) {
  9. builder := gw.NewBuilder(api.RouterPrefix, "v1")
  10. example.InitGateway(builder)
  11. }