1234567891011121314 |
- package v1
- import (
- "baize-demo/project/gateway/api/v1/example"
- "git.sxidc.com/go-framework/baize/framework/core/api"
- "git.sxidc.com/go-framework/baize/framework/gateway"
- )
- type Router struct{}
- func (router *Router) Init(gw *gateway.Gateway) {
- builder := gw.NewBuilder(api.RouterPrefix, "v1")
- example.InitGateway(builder)
- }
|