From 44fe134a7294c5aae1139c25e44f0527619eb9f4 Mon Sep 17 00:00:00 2001 From: what-00 Date: Wed, 12 Apr 2023 20:58:46 +0800 Subject: [PATCH] =?UTF-8?q?[feat]=20=E5=88=9D=E5=A7=8B=E5=8C=96=20Resource?= =?UTF-8?q?=20=E6=95=B0=E6=8D=AE=E7=9A=84=E6=97=B6=E5=80=99=E5=8F=AF?= =?UTF-8?q?=E4=BB=A5=E9=80=9A=E8=BF=87=20InitContainer=20=E6=B3=A8?= =?UTF-8?q?=E5=86=8Cdo=E5=AE=B9=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- base/resource.go | 4 ++++ 1 file changed, 4 insertions(+) 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