ctx.go 229 Bytes
Newer Older
hujiebin's avatar
hujiebin committed
1 2 3 4 5 6 7 8 9 10 11
package domain

import (
	"git.hilo.cn/hilo-common/mycontext"
	"github.com/go-redis/redis/v8"
	"gorm.io/gorm"
)

type CtxAndDb struct {
	Db *gorm.DB
	*mycontext.MyContext
hujiebin's avatar
hujiebin committed
12 13
	Redis        *redis.Client
	RedisCluster *redis.Client
hujiebin's avatar
hujiebin committed
14
}