mirror of
				https://gitee.com/dromara/mayfly-go
				synced 2025-11-04 08:20:25 +08:00 
			
		
		
		
	代码重构-基于gin,gorm
This commit is contained in:
		
							
								
								
									
										17
									
								
								base/global/global.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								base/global/global.go
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,17 @@
 | 
			
		||||
package global
 | 
			
		||||
 | 
			
		||||
import (
 | 
			
		||||
	"mayfly-go/base/config"
 | 
			
		||||
	"mayfly-go/base/mlog"
 | 
			
		||||
 | 
			
		||||
	"gorm.io/gorm"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
// 日志
 | 
			
		||||
var Log = mlog.Log
 | 
			
		||||
 | 
			
		||||
// config.yml配置文件映射对象
 | 
			
		||||
var Config = config.Conf
 | 
			
		||||
 | 
			
		||||
// gorm
 | 
			
		||||
var Db *gorm.DB
 | 
			
		||||
		Reference in New Issue
	
	Block a user