mirror of
https://gitee.com/dromara/mayfly-go
synced 2026-05-29 22:35:17 +08:00
20 lines
463 B
Go
20 lines
463 B
Go
package persistence
|
|
|
|
import (
|
|
"mayfly-go/internal/flow/domain/repository"
|
|
"mayfly-go/pkg/ioc"
|
|
)
|
|
|
|
func InitIoc() {
|
|
ioc.Register(newProcdefRepo())
|
|
ioc.Register(newProcinstRepo())
|
|
ioc.Register(newExectionRepo())
|
|
ioc.Register(newProcinstTaskRepo())
|
|
ioc.Register(newProcinstTaskCandidateRepo())
|
|
ioc.Register(newHisProcinstOpRepo())
|
|
}
|
|
|
|
func GetProcinstTaskCandidateRepo() repository.ProcinstTaskCandidate {
|
|
return ioc.Get[repository.ProcinstTaskCandidate]()
|
|
}
|