1
This commit is contained in:
parent
367fae0a70
commit
a6ab95f38f
@ -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"`
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user