binder.go 363 B

123456789101112131415161718
  1. package binding
  2. import (
  3. "git.sxidc.com/go-framework/baize/framework/core/api"
  4. "git.sxidc.com/go-framework/baize/framework/core/infrastructure"
  5. )
  6. type Binder struct {
  7. router api.Router
  8. i *infrastructure.Infrastructure
  9. }
  10. func NewBinder(router api.Router, i *infrastructure.Infrastructure) *Binder {
  11. return &Binder{
  12. router: router,
  13. i: i,
  14. }
  15. }