Browse Source

修改接口

yjp 1 year ago
parent
commit
8c395a9676
1 changed files with 2 additions and 2 deletions
  1. 2 2
      framework/binding/binder.go

+ 2 - 2
framework/binding/binder.go

@@ -17,6 +17,6 @@ func NewBinder(router api.Router, i *infrastructure.Infrastructure) *Binder {
 	}
 }
 
-func (binder *Binder) GetInfrastructure() *infrastructure.Infrastructure {
-	return binder.i
+func (binder *Binder) GetInfrastructure() infrastructure.Infrastructure {
+	return *binder.i
 }