2024-02-29 22:12:50 +08:00
|
|
|
package persistence
|
|
|
|
|
|
|
|
|
|
import (
|
2025-05-20 21:04:47 +08:00
|
|
|
"mayfly-go/internal/flow/domain/repository"
|
2024-02-29 22:12:50 +08:00
|
|
|
"mayfly-go/pkg/ioc"
|
|
|
|
|
)
|
|
|
|
|
|
2024-03-02 19:08:19 +08:00
|
|
|
func InitIoc() {
|
2024-02-29 22:12:50 +08:00
|
|
|
ioc.Register(newProcdefRepo(), ioc.WithComponentName("ProcdefRepo"))
|
|
|
|
|
ioc.Register(newProcinstRepo(), ioc.WithComponentName("ProcinstRepo"))
|
2025-05-20 21:04:47 +08:00
|
|
|
ioc.Register(newExectionRepo(), ioc.WithComponentName("ExectionRepo"))
|
2024-02-29 22:12:50 +08:00
|
|
|
ioc.Register(newProcinstTaskRepo(), ioc.WithComponentName("ProcinstTaskRepo"))
|
2025-05-20 21:04:47 +08:00
|
|
|
ioc.Register(newProcinstTaskCandidateRepo(), ioc.WithComponentName("ProcinstTaskCandidateRepo"))
|
|
|
|
|
ioc.Register(newHisProcinstOpRepo(), ioc.WithComponentName("HisProcinstTaskRepo"))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func GetProcinstTaskCandidateRepo() repository.ProcinstTaskCandidate {
|
|
|
|
|
return ioc.Get[repository.ProcinstTaskCandidate]("ProcinstTaskCandidateRepo")
|
2024-02-29 22:12:50 +08:00
|
|
|
}
|