diff --git a/base/resource.go b/base/resource.go index 341ebca..ca0181f 100644 --- a/base/resource.go +++ b/base/resource.go @@ -56,6 +56,10 @@ type Resource struct { CreatedAt string `db:"created_at"` } +func (this *Resource) InitContainer(container *do.Injector) { + this.container = container +} + // 资源UUID func (this Resource) GetUuid() string { return this.Uuid