Files
mayfly-go/server/internal/sys/infrastructure/persistence/persistence.go

16 lines
573 B
Go
Raw Normal View History

2022-09-09 18:26:08 +08:00
package persistence
2024-01-21 22:52:20 +08:00
import (
"mayfly-go/pkg/ioc"
2022-09-09 18:26:08 +08:00
)
2024-03-02 19:08:19 +08:00
func InitIoc() {
2024-01-21 22:52:20 +08:00
ioc.Register(newAccountRepo(), ioc.WithComponentName("AccountRepo"))
ioc.Register(newRoleRepo(), ioc.WithComponentName("RoleRepo"))
ioc.Register(newRoleResourceRepo(), ioc.WithComponentName("RoleResourceRepo"))
2024-01-21 22:52:20 +08:00
ioc.Register(newAccountRoleRepo(), ioc.WithComponentName("AccountRoleRepo"))
ioc.Register(newResourceRepo(), ioc.WithComponentName("ResourceRepo"))
ioc.Register(newConfigRepo(), ioc.WithComponentName("ConfigRepo"))
ioc.Register(newSyslogRepo(), ioc.WithComponentName("SyslogRepo"))
}