Files
mayfly-go/server/internal/flow/infra/persistence/persistence.go
2025-07-27 21:02:48 +08:00

20 lines
747 B
Go

package persistence
import (
"mayfly-go/internal/flow/domain/repository"
"mayfly-go/pkg/ioc"
)
func InitIoc() {
ioc.Register(newProcdefRepo(), ioc.WithComponentName("ProcdefRepo"))
ioc.Register(newProcinstRepo(), ioc.WithComponentName("ProcinstRepo"))
ioc.Register(newExectionRepo(), ioc.WithComponentName("ExectionRepo"))
ioc.Register(newProcinstTaskRepo(), ioc.WithComponentName("ProcinstTaskRepo"))
ioc.Register(newProcinstTaskCandidateRepo(), ioc.WithComponentName("ProcinstTaskCandidateRepo"))
ioc.Register(newHisProcinstOpRepo(), ioc.WithComponentName("HisProcinstTaskRepo"))
}
func GetProcinstTaskCandidateRepo() repository.ProcinstTaskCandidate {
return ioc.Get[repository.ProcinstTaskCandidate]("ProcinstTaskCandidateRepo")
}