| 12345678910111213141516171819202122 |
- package binding
- import (
- "git.sxidc.com/go-framework/baize/framework/core/api"
- "git.sxidc.com/go-framework/baize/framework/core/infrastructure"
- )
- type Binder struct {
- router api.Router
- i *infrastructure.Infrastructure
- }
- func NewBinder(router api.Router, i *infrastructure.Infrastructure) *Binder {
- return &Binder{
- router: router,
- i: i,
- }
- }
- func (binder *Binder) GetInfrastructure() *infrastructure.Infrastructure {
- return binder.i
- }
|