[feat] Add Init func to Controller interface

This commit is contained in:
what 2023-07-13 10:04:44 +08:00
parent c496b12972
commit 05f7b872c7

View File

@ -7,6 +7,9 @@ import (
)
type Controller interface {
// 初始化
Init() error
// 获取 Container
Container() *do.Injector
// 派遣一个任务
Dispatch(job string, payload any, u User) error