gorm升级到v2版本

This commit is contained in:
linwenxiang committed 2020-08-27 11:17:15 +08:00
1 parent 93cfe443d6
commit 60c7496f7b
56 files changed
+630 -477

No files matched your search

+1 -2
View File
@@ -69,7 +69,7 @@ func run() error {
}
r := router.InitRouter()
defer global.Eloquent.Close()
//defer global.Eloquent.Close()
srv := &http.Server{
Addr: config.ApplicationConfig.Host + ":" + config.ApplicationConfig.Port,
@@ -81,7 +81,6 @@ func run() error {
}()
go func() {
// 服务连接
if config.SslConfig.Enable {