Refine some structs and handle cycle import

This commit is contained in:
Granty1
2020-04-05 09:18:25 +08:00
parent 6db275ca39
commit 1891c1bcbc
15 changed files with 146 additions and 293 deletions
+4 -3
View File
@@ -1,16 +1,17 @@
package global
import (
"gin-vue-admin/init"
"gin-vue-admin/config"
"github.com/go-redis/redis"
"github.com/jinzhu/gorm"
oplogging "github.com/op/go-logging"
"github.com/spf13/viper"
)
var (
GVA_DB *gorm.DB
GVA_REDIS *redis.Client
GVA_LOG init.Logger
GVA_CONFIG init.Config
GVA_CONFIG config.Server
GVA_VP *viper.Viper
GVA_LOG *oplogging.Logger
)