From 3a6eea2dbe6eac8b243326d77b3e900de47441fd Mon Sep 17 00:00:00 2001 From: 王家文 Date: Thu, 16 May 2024 10:50:14 +0800 Subject: [PATCH] feat✨:排行榜功能 客户端配置增加字段 --- configs/confroomrank/config.go | 3 +++ 1 file changed, 3 insertions(+), 0 deletions(-) diff --git a/configs/confroomrank/config.go b/configs/confroomrank/config.go index 4ac4ee0..4fc0988 100644 --- a/configs/confroomrank/config.go +++ b/configs/confroomrank/config.go @@ -55,6 +55,7 @@ func (c *ActivityConfig) ConfInfo(suffix string) *confbase.ConfInfo { // ActivityConfigRaw 房间排行活动配置 原始数据 type ActivityConfigRaw struct { Id int64 `gorm:"column:id;primaryKey"` // ID + Serial int64 // 轮次ID Typ int // 排行榜类型 OpenLevel int // 开启等级 OpenScore int64 // 开启积分 @@ -76,6 +77,7 @@ func (c *ActivityConfigRaw) GenerateConfigClient() *ActivityConfigClient { configClient := &ActivityConfigClient{ Id: c.Id, Typ: c.Typ, + Serial: c.Serial, OpenLevel: c.OpenLevel, OpenScore: c.OpenScore, PreviewTime: c.PreviewTime, @@ -92,6 +94,7 @@ func (c *ActivityConfigRaw) GenerateConfigClient() *ActivityConfigClient { type ActivityConfigClient struct { Id int64 `form:"id" json:"id"` // ID Typ int `form:"typ" json:"typ"` // 排行榜类型 + Serial int64 `form:"serial" json:"serial"` // 轮次ID OpenLevel int `form:"open_level" json:"open_level"` // 开启等级 OpenScore int64 `form:"open_score" json:"open_score"` // 开启积分 PreviewTime int64 `form:"preview_time" json:"preview_time"` // 预告时间 -- libgit2 0.21.0