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.

31 lines
616 B

package global
import (
"context"
"github.com/go-redis/redis/v8"
"github.com/jinzhu/gorm"
)
// 单例模式
var (
CTX = context.Background()
RedisDb *redis.Client
DB *gorm.DB
HistoryCmds []string
EnableReply = true
EnableAiReply = true
EnableCmdExec = true
)
// 微信变量
var (
WxCrypt *WXBizMsgCrypt
WechatCorpId string
WechatToken string //微信回调的token
WechatEncodingAesKey string
WechatSendSecret string
WechatSendAid string
WechatAccessToken string //主动发消息的token
WechatImagePath string
)