diff --git a/configs/confcardholder/config.go b/configs/confcardholder/config.go index 37ec487..945308f 100644 --- a/configs/confcardholder/config.go +++ b/configs/confcardholder/config.go @@ -3,8 +3,6 @@ package confcardholder import ( "apigame/configs/confbase" "apigame/service-common/svconst" - "apigame/service-common/svmysql" - "apigame/service-common/svredis" "apigame/util/util-lx/lxtime" "apigame/util/utstring" "fmt" @@ -59,14 +57,6 @@ func (c *ActivityConfig) ConfInfo(suffix string) *confbase.ConfInfo { } } -func (c *ActivityConfig) RedisInfo(suffix string) *svredis.RedisInfo { - tableName := svconst.MYSQL_TABLE_S_CARDHOLDER_CONFIG - return &svredis.RedisInfo{ - CacheKey: fmt.Sprintf("%s:%s:%s:%d", svconst.REDIS_CACHEP_REFIX, tableName, suffix, c.Id), - CacheTime: 300, - } -} - // ActivityConfigRaw 卡牌活动配置 原始数据 type ActivityConfigRaw struct { Id int64 `gorm:"column:id;primaryKey"` // ID @@ -90,14 +80,6 @@ type ActivityConfigRaw struct { UpdateTime int64 // 修改时间戳 } -func (c *ActivityConfigRaw) MysqlInfo(suffix string) *svmysql.MysqlInfo { - tableName := svconst.MYSQL_TABLE_S_CARDHOLDER_CONFIG - return &svmysql.MysqlInfo{ - DbMysql: svconst.DbConfig, - TableName: fmt.Sprintf("%s_%s", tableName, suffix), - } -} - // ActivityConfigClient 卡牌活动配置 给客户端数据 type ActivityConfigClient struct { Id int64 `form:"id" json:"id"` // ID diff --git a/configs/confroomrank/config.go b/configs/confroomrank/config.go index 5edfb4c..54d718d 100644 --- a/configs/confroomrank/config.go +++ b/configs/confroomrank/config.go @@ -3,8 +3,6 @@ package confroomrank import ( "apigame/configs/confbase" "apigame/service-common/svconst" - "apigame/service-common/svmysql" - "apigame/service-common/svredis" "apigame/util/util-lx/lxtime" "apigame/util/utstring" "fmt" @@ -52,14 +50,6 @@ func (c *ActivityConfig) ConfInfo(suffix string) *confbase.ConfInfo { } } -func (c *ActivityConfig) RedisInfo(suffix string) *svredis.RedisInfo { - tableName := svconst.MYSQL_TABLE_S_ROOMRANK_CONFIG - return &svredis.RedisInfo{ - CacheKey: fmt.Sprintf("%s:%s:%s", svconst.REDIS_CACHEP_REFIX, tableName, suffix), - CacheTime: 300, - } -} - // ActivityConfigRaw 房间排行活动配置 原始数据 type ActivityConfigRaw struct { Id int64 `gorm:"column:id;primaryKey"` // ID @@ -76,14 +66,6 @@ type ActivityConfigRaw struct { UpdateTime int64 // 修改时间戳 } -func (c *ActivityConfigRaw) MysqlInfo(suffix string) *svmysql.MysqlInfo { - tableName := svconst.MYSQL_TABLE_S_ROOMRANK_CONFIG - return &svmysql.MysqlInfo{ - DbMysql: svconst.DbConfig.Where("status = ?", 1), - TableName: tableName + suffix, - } -} - // ActivityConfigClient 房间排行活动配置 给客户端数据 type ActivityConfigClient struct { Id int64 `form:"id" json:"id"` // ID -- libgit2 0.21.0