mirror of
				https://gitee.com/dromara/mayfly-go
				synced 2025-11-04 08:20:25 +08:00 
			
		
		
		
	* feat: 表格+表格元数据缓存 * feat:跳板机支持多段跳 * fix: 所有数据库区分字段主键和自增 * feat: DBMS支持mssql * refactor: 去除无用的getter方法
		
			
				
	
	
		
			15 lines
		
	
	
		
			490 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			490 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package persistence
 | 
						|
 | 
						|
import (
 | 
						|
	"mayfly-go/pkg/ioc"
 | 
						|
)
 | 
						|
 | 
						|
func Init() {
 | 
						|
	ioc.Register(newAccountRepo(), ioc.WithComponentName("AccountRepo"))
 | 
						|
	ioc.Register(newRoleRepo(), ioc.WithComponentName("RoleRepo"))
 | 
						|
	ioc.Register(newAccountRoleRepo(), ioc.WithComponentName("AccountRoleRepo"))
 | 
						|
	ioc.Register(newResourceRepo(), ioc.WithComponentName("ResourceRepo"))
 | 
						|
	ioc.Register(newConfigRepo(), ioc.WithComponentName("ConfigRepo"))
 | 
						|
	ioc.Register(newSyslogRepo(), ioc.WithComponentName("SyslogRepo"))
 | 
						|
}
 |