Files
mayfly-go/server/internal/flow/application/application.go

40 lines
682 B
Go
Raw Normal View History

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))
2026-02-01 13:35:23 +08:00
ioc.Register(new(procinstTaskAppImpl))
ioc.Register(new(hisProcinstOpAppImpl))
}
func Init() {
GetExecutionApp().Init()
GetProcinstTaskApp().Init()
}
func GetProcdefApp() Procdef {
2026-01-05 20:07:17 +08:00
return ioc.Get[Procdef]()
}
func GetProcinstApp() Procinst {
2026-01-05 20:07:17 +08:00
return ioc.Get[Procinst]()
}
func GetExecutionApp() Execution {
2026-01-05 20:07:17 +08:00
return ioc.Get[Execution]()
}
func GetHisProcinstOpApp() HisProcinstOp {
2026-01-05 20:07:17 +08:00
return ioc.Get[HisProcinstOp]()
}
func GetProcinstTaskApp() ProcinstTask {
2026-01-05 20:07:17 +08:00
return ioc.Get[ProcinstTask]()
}