mirror of
https://gitee.com/dromara/mayfly-go
synced 2026-02-02 02:45:48 +08:00
40 lines
682 B
Go
40 lines
682 B
Go
package application
|
|
|
|
import (
|
|
"mayfly-go/pkg/ioc"
|
|
)
|
|
|
|
func InitIoc() {
|
|
ioc.Register(new(procdefAppImpl))
|
|
ioc.Register(new(procinstAppImpl))
|
|
ioc.Register(new(executionAppImpl))
|
|
|
|
ioc.Register(new(procinstTaskAppImpl))
|
|
ioc.Register(new(hisProcinstOpAppImpl))
|
|
}
|
|
|
|
func Init() {
|
|
GetExecutionApp().Init()
|
|
GetProcinstTaskApp().Init()
|
|
}
|
|
|
|
func GetProcdefApp() Procdef {
|
|
return ioc.Get[Procdef]()
|
|
}
|
|
|
|
func GetProcinstApp() Procinst {
|
|
return ioc.Get[Procinst]()
|
|
}
|
|
|
|
func GetExecutionApp() Execution {
|
|
return ioc.Get[Execution]()
|
|
}
|
|
|
|
func GetHisProcinstOpApp() HisProcinstOp {
|
|
return ioc.Get[HisProcinstOp]()
|
|
}
|
|
|
|
func GetProcinstTaskApp() ProcinstTask {
|
|
return ioc.Get[ProcinstTask]()
|
|
}
|