Kaynağa Gözat

添加接口

yjp 1 yıl önce
ebeveyn
işleme
18a13af0d3
1 değiştirilmiş dosya ile 4 ekleme ve 0 silme
  1. 4 0
      framework/binding/binder.go

+ 4 - 0
framework/binding/binder.go

@@ -16,3 +16,7 @@ func NewBinder(router api.Router, i *infrastructure.Infrastructure) *Binder {
 		i:      i,
 	}
 }
+
+func (binder *Binder) GetInfrastructure() *infrastructure.Infrastructure {
+	return binder.i
+}