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,6 +55,7 @@ func (c *ActivityConfig) ConfInfo(suffix string) *confbase.ConfInfo { | ||
| 55 | // ActivityConfigRaw 房间排行活动配置 原始数据 | 55 | // ActivityConfigRaw 房间排行活动配置 原始数据 |
| 56 | type ActivityConfigRaw struct { | 56 | type ActivityConfigRaw struct { |
| 57 | Id int64 `gorm:"column:id;primaryKey"` // ID | 57 | Id int64 `gorm:"column:id;primaryKey"` // ID |
| 58 | + Serial int64 // 轮次ID | ||
| 58 | Typ int // 排行榜类型 | 59 | Typ int // 排行榜类型 |
| 59 | OpenLevel int // 开启等级 | 60 | OpenLevel int // 开启等级 |
| 60 | OpenScore int64 // 开启积分 | 61 | OpenScore int64 // 开启积分 |
| @@ -76,6 +77,7 @@ func (c *ActivityConfigRaw) GenerateConfigClient() *ActivityConfigClient { | @@ -76,6 +77,7 @@ func (c *ActivityConfigRaw) GenerateConfigClient() *ActivityConfigClient { | ||
| 76 | configClient := &ActivityConfigClient{ | 77 | configClient := &ActivityConfigClient{ |
| 77 | Id: c.Id, | 78 | Id: c.Id, |
| 78 | Typ: c.Typ, | 79 | Typ: c.Typ, |
| 80 | + Serial: c.Serial, | ||
| 79 | OpenLevel: c.OpenLevel, | 81 | OpenLevel: c.OpenLevel, |
| 80 | OpenScore: c.OpenScore, | 82 | OpenScore: c.OpenScore, |
| 81 | PreviewTime: c.PreviewTime, | 83 | PreviewTime: c.PreviewTime, |
| @@ -92,6 +94,7 @@ func (c *ActivityConfigRaw) GenerateConfigClient() *ActivityConfigClient { | @@ -92,6 +94,7 @@ func (c *ActivityConfigRaw) GenerateConfigClient() *ActivityConfigClient { | ||
| 92 | type ActivityConfigClient struct { | 94 | type ActivityConfigClient struct { |
| 93 | Id int64 `form:"id" json:"id"` // ID | 95 | Id int64 `form:"id" json:"id"` // ID |
| 94 | Typ int `form:"typ" json:"typ"` // 排行榜类型 | 96 | Typ int `form:"typ" json:"typ"` // 排行榜类型 |
| 97 | + Serial int64 `form:"serial" json:"serial"` // 轮次ID | ||
| 95 | OpenLevel int `form:"open_level" json:"open_level"` // 开启等级 | 98 | OpenLevel int `form:"open_level" json:"open_level"` // 开启等级 |
| 96 | OpenScore int64 `form:"open_score" json:"open_score"` // 开启积分 | 99 | OpenScore int64 `form:"open_score" json:"open_score"` // 开启积分 |
| 97 | PreviewTime int64 `form:"preview_time" json:"preview_time"` // 预告时间 | 100 | PreviewTime int64 `form:"preview_time" json:"preview_time"` // 预告时间 |