Commit 5c0c56b1 authored by hujiebin's avatar hujiebin

Update group_grade.go

parent 7db0fc68
...@@ -21,7 +21,7 @@ type GroupPowerGrade struct { ...@@ -21,7 +21,7 @@ type GroupPowerGrade struct {
GroupPowerId mysql.ID GroupPowerId mysql.ID
Exp int64 Exp int64
Grade groupPower_e.GroupPowerGrade Grade groupPower_e.GroupPowerGrade
ExpiredAt time.Time ExpireAt time.Time
CreatedTime time.Time `gorm:"->"` CreatedTime time.Time `gorm:"->"`
UpdatedTime time.Time `gorm:"->"` UpdatedTime time.Time `gorm:"->"`
} }
...@@ -53,7 +53,7 @@ func IncrGroupPowerExp(txModel *domain.Model, groupPowerId mysql.ID, exp int64) ...@@ -53,7 +53,7 @@ func IncrGroupPowerExp(txModel *domain.Model, groupPowerId mysql.ID, exp int64)
GroupPowerId: groupPowerId, GroupPowerId: groupPowerId,
Exp: exp, Exp: exp,
Grade: 0, Grade: 0,
ExpiredAt: time.Time{}, ExpireAt: time.Time{},
} }
if err = txModel.DB().Model(GroupPowerGrade{}).Clauses(clause.OnConflict{Columns: []clause.Column{{Name: "group_power_id"}}, if err = txModel.DB().Model(GroupPowerGrade{}).Clauses(clause.OnConflict{Columns: []clause.Column{{Name: "group_power_id"}},
DoUpdates: clause.Assignments(map[string]interface{}{ DoUpdates: clause.Assignments(map[string]interface{}{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment