From c496b129721985bac0135d81254eeaed4c6aaf12 Mon Sep 17 00:00:00 2001 From: what Date: Thu, 13 Jul 2023 09:35:04 +0800 Subject: [PATCH] [feat] Add Init func to BaseController --- controller.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/controller.go b/controller.go index 0781745..5152248 100644 --- a/controller.go +++ b/controller.go @@ -61,6 +61,10 @@ func (this BaseController) Container() *do.Injector { return this.container } +func (BaseController) Init() error { + return nil +} + func (this BaseController) Dispatch(job string, payload any, u User) error { return do.MustInvoke[JobService](this.Container()).Dispatch(job, payload, u) }