[feat] Add Init func to BaseController
This commit is contained in:
parent
e6c4bddaa9
commit
c496b12972
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user