2024-02-29 22:12:50 +08:00
|
|
|
package application
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"mayfly-go/pkg/ioc"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func InitIoc() {
|
2026-02-01 13:35:23 +08:00
|
|
|
ioc.Register(new(procdefAppImpl))
|
|
|
|
|
ioc.Register(new(procinstAppImpl))
|
|
|
|
|
ioc.Register(new(executionAppImpl))
|
2025-05-20 21:04:47 +08:00
|
|
|
|
2026-02-01 13:35:23 +08:00
|
|
|
ioc.Register(new(procinstTaskAppImpl))
|
|
|
|
|
ioc.Register(new(hisProcinstOpAppImpl))
|
2025-05-20 21:04:47 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func Init() {
|
|
|
|
|
GetExecutionApp().Init()
|
|
|
|
|
GetProcinstTaskApp().Init()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func GetProcdefApp() Procdef {
|
2026-01-05 20:07:17 +08:00
|
|
|
return ioc.Get[Procdef]()
|
2025-05-20 21:04:47 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func GetProcinstApp() Procinst {
|
2026-01-05 20:07:17 +08:00
|
|
|
return ioc.Get[Procinst]()
|
2025-05-20 21:04:47 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func GetExecutionApp() Execution {
|
2026-01-05 20:07:17 +08:00
|
|
|
return ioc.Get[Execution]()
|
2025-05-20 21:04:47 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func GetHisProcinstOpApp() HisProcinstOp {
|
2026-01-05 20:07:17 +08:00
|
|
|
return ioc.Get[HisProcinstOp]()
|
2025-05-20 21:04:47 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func GetProcinstTaskApp() ProcinstTask {
|
2026-01-05 20:07:17 +08:00
|
|
|
return ioc.Get[ProcinstTask]()
|
2024-02-29 22:12:50 +08:00
|
|
|
}
|