mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-03 16:00:25 +08:00
refactor: 去除无用的getter方法
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user