refactor: 代码结构调整

This commit is contained in:
meilin.huang
2022-09-09 18:26:08 +08:00
parent fb3f89c594
commit be00b90c1d
120 changed files with 944 additions and 561 deletions

View File

@@ -0,0 +1,36 @@
package persistence
import "mayfly-go/internal/sys/domain/repository"
var (
accountRepo = newAccountRepo()
configRepo = newConfigRepo()
msgRepo = newMsgRepo()
resourceRepo = newResourceRepo()
roleRepo = newRoleRepo()
syslogRepo = newSyslogRepo()
)
func GetAccountRepo() repository.Account {
return accountRepo
}
func GetConfigRepo() repository.Config {
return configRepo
}
func GetMsgRepo() repository.Msg {
return msgRepo
}
func GetResourceRepo() repository.Resource {
return resourceRepo
}
func GetRoleRepo() repository.Role {
return roleRepo
}
func GetSyslogRepo() repository.Syslog {
return syslogRepo
}