root.go 332 B

1234567891011121314
  1. package root
  2. import (
  3. "baize-playground/gateway/api/root/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, "")
  10. example.InitGateway(builder)
  11. }