1
0

fix ue game lv

This commit is contained in:
2024-06-01 23:35:34 +09:00
parent 2b479451c1
commit e508a50025
21 changed files with 2170 additions and 79 deletions

View File

@@ -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