// Code generated by gorm.io/gen. DO NOT EDIT. // Code generated by gorm.io/gen. DO NOT EDIT. // Code generated by gorm.io/gen. DO NOT EDIT. package query import ( "gorm.io/gorm" "github.com/go-redis/redis/v7" "gorm.io/gen" "github.com/go-admin-team/go-admin-core/sdk" "github.com/go-admin-team/go-admin-core/sdk/config" ) func Use(db *gorm.DB, opts ...gen.DOOption) *Query { return &Query{ db: db, // App: newApp(db, opts...), } } type Query struct { db *gorm.DB rdb *redis.Client } func (q *Query) Init() { q.db = sdk.Runtime.GetDbByKey("*") q.rdb = config.GetRedisClient() }