Commit 3a6eea2dbe6eac8b243326d77b3e900de47441fd
1 parent
975643ca
Exists in
master
and in
1 other branch
feat✨:排行榜功能 客户端配置增加字段
Showing
1 changed file
with
3 additions
and
0 deletions
Show diff stats
configs/confroomrank/config.go
| ... | ... | @@ -55,6 +55,7 @@ func (c *ActivityConfig) ConfInfo(suffix string) *confbase.ConfInfo { |
| 55 | 55 | // ActivityConfigRaw 房间排行活动配置 原始数据 |
| 56 | 56 | type ActivityConfigRaw struct { |
| 57 | 57 | Id int64 `gorm:"column:id;primaryKey"` // ID |
| 58 | + Serial int64 // 轮次ID | |
| 58 | 59 | Typ int // 排行榜类型 |
| 59 | 60 | OpenLevel int // 开启等级 |
| 60 | 61 | OpenScore int64 // 开启积分 |
| ... | ... | @@ -76,6 +77,7 @@ func (c *ActivityConfigRaw) GenerateConfigClient() *ActivityConfigClient { |
| 76 | 77 | configClient := &ActivityConfigClient{ |
| 77 | 78 | Id: c.Id, |
| 78 | 79 | Typ: c.Typ, |
| 80 | + Serial: c.Serial, | |
| 79 | 81 | OpenLevel: c.OpenLevel, |
| 80 | 82 | OpenScore: c.OpenScore, |
| 81 | 83 | PreviewTime: c.PreviewTime, |
| ... | ... | @@ -92,6 +94,7 @@ func (c *ActivityConfigRaw) GenerateConfigClient() *ActivityConfigClient { |
| 92 | 94 | type ActivityConfigClient struct { |
| 93 | 95 | Id int64 `form:"id" json:"id"` // ID |
| 94 | 96 | Typ int `form:"typ" json:"typ"` // 排行榜类型 |
| 97 | + Serial int64 `form:"serial" json:"serial"` // 轮次ID | |
| 95 | 98 | OpenLevel int `form:"open_level" json:"open_level"` // 开启等级 |
| 96 | 99 | OpenScore int64 `form:"open_score" json:"open_score"` // 开启积分 |
| 97 | 100 | PreviewTime int64 `form:"preview_time" json:"preview_time"` // 预告时间 | ... | ... |