Files
mayfly-go/server/internal/auth/infrastructure/persistence/persistence.go
2024-01-21 22:52:20 +08:00

15 lines
315 B
Go

package persistence
import (
"mayfly-go/internal/auth/domain/repository"
"mayfly-go/pkg/ioc"
)
func Init() {
ioc.Register(newAuthAccountRepo(), ioc.WithComponentName("Oauth2AccountRepo"))
}
func GetOauthAccountRepo() repository.Oauth2Account {
return ioc.Get[repository.Oauth2Account]("Oauth2AccountRepo")
}