mirror of
				https://gitee.com/dromara/mayfly-go
				synced 2025-11-04 00:10:25 +08:00 
			
		
		
		
	refactor: 代码结构调整
This commit is contained in:
		
							
								
								
									
										16
									
								
								server/internal/db/application/application.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								server/internal/db/application/application.go
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,16 @@
 | 
			
		||||
package application
 | 
			
		||||
 | 
			
		||||
import "mayfly-go/internal/db/infrastructure/persistence"
 | 
			
		||||
 | 
			
		||||
var (
 | 
			
		||||
	dbApp        Db        = newDbApp(persistence.GetDbRepo(), persistence.GetDbSqlRepo())
 | 
			
		||||
	dbSqlExecApp DbSqlExec = newDbSqlExecApp(persistence.GetDbSqlExecRepo())
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
func GetDbApp() Db {
 | 
			
		||||
	return dbApp
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func GetDbSqlExecApp() DbSqlExec {
 | 
			
		||||
	return dbSqlExecApp
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user