This commit is contained in:
aozhiwei 2024-11-20 13:18:01 +08:00
parent 367fae0a70
commit a6ab95f38f
2 changed files with 3 additions and 0 deletions

View File

@ -24,6 +24,7 @@ type User struct {
PlatVip int32 `gorm:"column:plat_vip"`
Score int64 `gorm:"column:score"`
Dice int32 `gorm:"column:dice"`
SpecDice int32 `gorm:"column:spec_dice"`
LastPresentDiceTime int32 `gorm:"column:last_present_dice_time"`
CreateTime int32 `gorm:"column:createtime;<-:create"`
ModifyTime int32 `gorm:"column:modifytime"`

View File

@ -11,6 +11,7 @@ type User struct {
Score int64 `json:"score"`
HourlyEarnings string `json:"hourly_earnings"`
Dice int32 `json:"dice"`
SpecDice int32 `json:"spec_dice"`
}
func (this *User) FromModel(m *model.User) {
@ -20,4 +21,5 @@ func (this *User) FromModel(m *model.User) {
this.Score = m.Score
this.HourlyEarnings = "0"
this.Dice = m.Dice
this.SpecDice = m.SpecDice
}