ctx.go 194 Bytes
Newer Older
hujiebin's avatar
hujiebin committed
1 2 3 4 5 6 7 8 9 10 11 12 13
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
	Redis *redis.Client
}