mirror of
https://gitee.com/dromara/mayfly-go
synced 2026-01-02 04:36:35 +08:00
15 lines
315 B
Go
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")
|
|
}
|