[feat] Add Init func to Controller interface
This commit is contained in:
parent
c496b12972
commit
05f7b872c7
@ -7,6 +7,9 @@ import (
|
||||
)
|
||||
|
||||
type Controller interface {
|
||||
// 初始化
|
||||
Init() error
|
||||
// 获取 Container
|
||||
Container() *do.Injector
|
||||
// 派遣一个任务
|
||||
Dispatch(job string, payload any, u User) error
|
||||
|
Loading…
Reference in New Issue
Block a user