fix ue game lv
This commit is contained in:
@@ -666,6 +666,20 @@ func (uc *UserCreate) SetNillableGameLv(i *int) *UserCreate {
|
||||
return uc
|
||||
}
|
||||
|
||||
// SetGameExp sets the "game_exp" field.
|
||||
func (uc *UserCreate) SetGameExp(i int) *UserCreate {
|
||||
uc.mutation.SetGameExp(i)
|
||||
return uc
|
||||
}
|
||||
|
||||
// SetNillableGameExp sets the "game_exp" field if the given value is not nil.
|
||||
func (uc *UserCreate) SetNillableGameExp(i *int) *UserCreate {
|
||||
if i != nil {
|
||||
uc.SetGameExp(*i)
|
||||
}
|
||||
return uc
|
||||
}
|
||||
|
||||
// SetCoin sets the "coin" field.
|
||||
func (uc *UserCreate) SetCoin(i int) *UserCreate {
|
||||
uc.mutation.SetCoin(i)
|
||||
@@ -1133,6 +1147,10 @@ func (uc *UserCreate) createSpec() (*User, *sqlgraph.CreateSpec) {
|
||||
_spec.SetField(user.FieldGameLv, field.TypeInt, value)
|
||||
_node.GameLv = value
|
||||
}
|
||||
if value, ok := uc.mutation.GameExp(); ok {
|
||||
_spec.SetField(user.FieldGameExp, field.TypeInt, value)
|
||||
_node.GameExp = value
|
||||
}
|
||||
if value, ok := uc.mutation.Coin(); ok {
|
||||
_spec.SetField(user.FieldCoin, field.TypeInt, value)
|
||||
_node.Coin = value
|
||||
|
Reference in New Issue
Block a user