From 05f7b872c72857120e5d86b3a08809e55a147043 Mon Sep 17 00:00:00 2001 From: what Date: Thu, 13 Jul 2023 10:04:44 +0800 Subject: [PATCH] [feat] Add Init func to Controller interface --- controller.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/controller.go b/controller.go index 5152248..35b7dc4 100644 --- a/controller.go +++ b/controller.go @@ -7,6 +7,9 @@ import ( ) type Controller interface { + // 初始化 + Init() error + // 获取 Container Container() *do.Injector // 派遣一个任务 Dispatch(job string, payload any, u User) error