[feat] Add Init func to BaseController

This commit is contained in:
what 2023-07-13 09:35:04 +08:00
parent e6c4bddaa9
commit c496b12972

View File

@ -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)
}