mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-03 16:00:25 +08:00
37 lines
694 B
Go
37 lines
694 B
Go
package persistence
|
|
|
|
import "mayfly-go/internal/sys/domain/repository"
|
|
|
|
var (
|
|
accountRepo = newAccountRepo()
|
|
authAccountRepo = newAuthAccountRepo()
|
|
configRepo = newConfigRepo()
|
|
resourceRepo = newResourceRepo()
|
|
roleRepo = newRoleRepo()
|
|
syslogRepo = newSyslogRepo()
|
|
)
|
|
|
|
func GetAccountRepo() repository.Account {
|
|
return accountRepo
|
|
}
|
|
|
|
func GetOAuthAccountRepo() repository.OAuthAccount {
|
|
return authAccountRepo
|
|
}
|
|
|
|
func GetConfigRepo() repository.Config {
|
|
return configRepo
|
|
}
|
|
|
|
func GetResourceRepo() repository.Resource {
|
|
return resourceRepo
|
|
}
|
|
|
|
func GetRoleRepo() repository.Role {
|
|
return roleRepo
|
|
}
|
|
|
|
func GetSyslogRepo() repository.Syslog {
|
|
return syslogRepo
|
|
}
|