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

16 lines
573 B
Go

package persistence
import (
"mayfly-go/pkg/ioc"
)
func InitIoc() {
ioc.Register(newAccountRepo(), ioc.WithComponentName("AccountRepo"))
ioc.Register(newRoleRepo(), ioc.WithComponentName("RoleRepo"))
ioc.Register(newRoleResourceRepo(), ioc.WithComponentName("RoleResourceRepo"))
ioc.Register(newAccountRoleRepo(), ioc.WithComponentName("AccountRoleRepo"))
ioc.Register(newResourceRepo(), ioc.WithComponentName("ResourceRepo"))
ioc.Register(newConfigRepo(), ioc.WithComponentName("ConfigRepo"))
ioc.Register(newSyslogRepo(), ioc.WithComponentName("SyslogRepo"))
}