Commit 2434595440584c5868ab2370b97b442f7edd59e6
1 parent
141bf731
Exists in
master
and in
1 other branch
feat✨:游戏功能配置
Showing
2 changed files
with
0 additions
and
36 deletions
Show diff stats
configs/confcardholder/config.go
| @@ -3,8 +3,6 @@ package confcardholder | @@ -3,8 +3,6 @@ package confcardholder | ||
| 3 | import ( | 3 | import ( |
| 4 | "apigame/configs/confbase" | 4 | "apigame/configs/confbase" |
| 5 | "apigame/service-common/svconst" | 5 | "apigame/service-common/svconst" |
| 6 | - "apigame/service-common/svmysql" | ||
| 7 | - "apigame/service-common/svredis" | ||
| 8 | "apigame/util/util-lx/lxtime" | 6 | "apigame/util/util-lx/lxtime" |
| 9 | "apigame/util/utstring" | 7 | "apigame/util/utstring" |
| 10 | "fmt" | 8 | "fmt" |
| @@ -59,14 +57,6 @@ func (c *ActivityConfig) ConfInfo(suffix string) *confbase.ConfInfo { | @@ -59,14 +57,6 @@ func (c *ActivityConfig) ConfInfo(suffix string) *confbase.ConfInfo { | ||
| 59 | } | 57 | } |
| 60 | } | 58 | } |
| 61 | 59 | ||
| 62 | -func (c *ActivityConfig) RedisInfo(suffix string) *svredis.RedisInfo { | ||
| 63 | - tableName := svconst.MYSQL_TABLE_S_CARDHOLDER_CONFIG | ||
| 64 | - return &svredis.RedisInfo{ | ||
| 65 | - CacheKey: fmt.Sprintf("%s:%s:%s:%d", svconst.REDIS_CACHEP_REFIX, tableName, suffix, c.Id), | ||
| 66 | - CacheTime: 300, | ||
| 67 | - } | ||
| 68 | -} | ||
| 69 | - | ||
| 70 | // ActivityConfigRaw 卡牌活动配置 原始数据 | 60 | // ActivityConfigRaw 卡牌活动配置 原始数据 |
| 71 | type ActivityConfigRaw struct { | 61 | type ActivityConfigRaw struct { |
| 72 | Id int64 `gorm:"column:id;primaryKey"` // ID | 62 | Id int64 `gorm:"column:id;primaryKey"` // ID |
| @@ -90,14 +80,6 @@ type ActivityConfigRaw struct { | @@ -90,14 +80,6 @@ type ActivityConfigRaw struct { | ||
| 90 | UpdateTime int64 // 修改时间戳 | 80 | UpdateTime int64 // 修改时间戳 |
| 91 | } | 81 | } |
| 92 | 82 | ||
| 93 | -func (c *ActivityConfigRaw) MysqlInfo(suffix string) *svmysql.MysqlInfo { | ||
| 94 | - tableName := svconst.MYSQL_TABLE_S_CARDHOLDER_CONFIG | ||
| 95 | - return &svmysql.MysqlInfo{ | ||
| 96 | - DbMysql: svconst.DbConfig, | ||
| 97 | - TableName: fmt.Sprintf("%s_%s", tableName, suffix), | ||
| 98 | - } | ||
| 99 | -} | ||
| 100 | - | ||
| 101 | // ActivityConfigClient 卡牌活动配置 给客户端数据 | 83 | // ActivityConfigClient 卡牌活动配置 给客户端数据 |
| 102 | type ActivityConfigClient struct { | 84 | type ActivityConfigClient struct { |
| 103 | Id int64 `form:"id" json:"id"` // ID | 85 | Id int64 `form:"id" json:"id"` // ID |
configs/confroomrank/config.go
| @@ -3,8 +3,6 @@ package confroomrank | @@ -3,8 +3,6 @@ package confroomrank | ||
| 3 | import ( | 3 | import ( |
| 4 | "apigame/configs/confbase" | 4 | "apigame/configs/confbase" |
| 5 | "apigame/service-common/svconst" | 5 | "apigame/service-common/svconst" |
| 6 | - "apigame/service-common/svmysql" | ||
| 7 | - "apigame/service-common/svredis" | ||
| 8 | "apigame/util/util-lx/lxtime" | 6 | "apigame/util/util-lx/lxtime" |
| 9 | "apigame/util/utstring" | 7 | "apigame/util/utstring" |
| 10 | "fmt" | 8 | "fmt" |
| @@ -52,14 +50,6 @@ func (c *ActivityConfig) ConfInfo(suffix string) *confbase.ConfInfo { | @@ -52,14 +50,6 @@ func (c *ActivityConfig) ConfInfo(suffix string) *confbase.ConfInfo { | ||
| 52 | } | 50 | } |
| 53 | } | 51 | } |
| 54 | 52 | ||
| 55 | -func (c *ActivityConfig) RedisInfo(suffix string) *svredis.RedisInfo { | ||
| 56 | - tableName := svconst.MYSQL_TABLE_S_ROOMRANK_CONFIG | ||
| 57 | - return &svredis.RedisInfo{ | ||
| 58 | - CacheKey: fmt.Sprintf("%s:%s:%s", svconst.REDIS_CACHEP_REFIX, tableName, suffix), | ||
| 59 | - CacheTime: 300, | ||
| 60 | - } | ||
| 61 | -} | ||
| 62 | - | ||
| 63 | // ActivityConfigRaw 房间排行活动配置 原始数据 | 53 | // ActivityConfigRaw 房间排行活动配置 原始数据 |
| 64 | type ActivityConfigRaw struct { | 54 | type ActivityConfigRaw struct { |
| 65 | Id int64 `gorm:"column:id;primaryKey"` // ID | 55 | Id int64 `gorm:"column:id;primaryKey"` // ID |
| @@ -76,14 +66,6 @@ type ActivityConfigRaw struct { | @@ -76,14 +66,6 @@ type ActivityConfigRaw struct { | ||
| 76 | UpdateTime int64 // 修改时间戳 | 66 | UpdateTime int64 // 修改时间戳 |
| 77 | } | 67 | } |
| 78 | 68 | ||
| 79 | -func (c *ActivityConfigRaw) MysqlInfo(suffix string) *svmysql.MysqlInfo { | ||
| 80 | - tableName := svconst.MYSQL_TABLE_S_ROOMRANK_CONFIG | ||
| 81 | - return &svmysql.MysqlInfo{ | ||
| 82 | - DbMysql: svconst.DbConfig.Where("status = ?", 1), | ||
| 83 | - TableName: tableName + suffix, | ||
| 84 | - } | ||
| 85 | -} | ||
| 86 | - | ||
| 87 | // ActivityConfigClient 房间排行活动配置 给客户端数据 | 69 | // ActivityConfigClient 房间排行活动配置 给客户端数据 |
| 88 | type ActivityConfigClient struct { | 70 | type ActivityConfigClient struct { |
| 89 | Id int64 `form:"id" json:"id"` // ID | 71 | Id int64 `form:"id" json:"id"` // ID |