Refine some structs and handle cycle import
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user