refactor: 去除无用的getter方法

This commit is contained in:
meilin.huang
2024-01-29 11:34:48 +08:00
parent 923e183a67
commit b9afbc764d
18 changed files with 11 additions and 193 deletions

View File

@@ -1,14 +1,9 @@
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")
}