You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
503 B

6 months ago
package global
import (
"google.golang.org/grpc"
"shop-api/config"
"shop-api/initialize/api"
"shop-api/utils/timer"
"github.com/go-redis/redis"
"github.com/spf13/viper"
"go.uber.org/zap"
"gorm.io/gorm"
)
var (
MG_DB *gorm.DB
MG_REDIS *redis.Client
MG_CONFIG config.Server
MG_VP *viper.Viper
MG_LOG *zap.Logger
PAY_CONN *grpc.ClientConn
SMS_CLIENT api.SmsClient
EMAIL_CLIENT api.EmailClient
MG_Language interface{}
MG_Timer timer.Timer = timer.NewTimerTask()
)