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-01-21 22:52:20 +08:00
|
|
|
func Init() {
|
|
|
|
|
ioc.Register(newAccountRepo(), ioc.WithComponentName("AccountRepo"))
|
|
|
|
|
ioc.Register(newRoleRepo(), ioc.WithComponentName("RoleRepo"))
|
|
|
|
|
ioc.Register(newAccountRoleRepo(), ioc.WithComponentName("AccountRoleRepo"))
|
|
|
|
|
ioc.Register(newResourceRepo(), ioc.WithComponentName("ResourceRepo"))
|
|
|
|
|
ioc.Register(newConfigRepo(), ioc.WithComponentName("ConfigRepo"))
|
|
|
|
|
ioc.Register(newSyslogRepo(), ioc.WithComponentName("SyslogRepo"))
|
|
|
|
|
}
|