interface.go
429 Bytes
package confbase
import "gorm.io/gorm"
// ConfInfo 配置对象信息
type ConfInfo struct {
DbMysql *gorm.DB
TableName string
KeyName string
CacheKey string
CacheTime int
}
// IConfData 配置对象
type IConfData interface {
// ConfInfo redis存储信息
ConfInfo(suffix string) *ConfInfo
// Decode 解码
Decode(gameId string, rawData any)
}
// IConfRawData mysql存储对象
type IConfRawData interface {
}