add
This commit is contained in:
@@ -15,6 +15,7 @@ func main() {
|
||||
zap.L().Info("🚀 用户服务初始化")
|
||||
zap.L().Info("⌛️ 数据库初始化开始")
|
||||
db.Init()
|
||||
defer db.DB.Close() // 应用退出时关闭连接
|
||||
zap.L().Info("✅ 数据库初始化成功")
|
||||
|
||||
gin.SetMode(gin.ReleaseMode)
|
||||
|
||||
Reference in New Issue
Block a user