mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-02 23:40:24 +08:00
20 lines
747 B
Go
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")
|
|
}
|