interface.go
369 Bytes
package svdto
import "gorm.io/gorm"
const (
REDIS_CACHEP_REFIX = "apigame" // 缓存前缀
)
// DtoRule dto参数
type DtoRule struct {
DbMysql *gorm.DB
TableName string
CacheKey string
CacheTime int
}
// IDtoData dto数据
type IDtoData interface {
// TableName 表名模板
TableName() string
// GetRule 表名模板
GetRule(gameId string) *DtoRule
}