mirror of
				https://gitee.com/dromara/mayfly-go
				synced 2025-11-04 08:20:25 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			37 lines
		
	
	
		
			642 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			37 lines
		
	
	
		
			642 B
		
	
	
	
		
			Go
		
	
	
	
	
	
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
 | 
						|
}
 |