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

@@ -265,6 +265,48 @@ func (uc *UeCreate) SetNillableAuthor(s *string) *UeCreate {
return uc
}
// SetGameLv sets the "game_lv" field.
func (uc *UeCreate) SetGameLv(s string) *UeCreate {
uc.mutation.SetGameLv(s)
return uc
}
// SetNillableGameLv sets the "game_lv" field if the given value is not nil.
func (uc *UeCreate) SetNillableGameLv(s *string) *UeCreate {
if s != nil {
uc.SetGameLv(*s)
}
return uc
}
// SetGameExp sets the "game_exp" field.
func (uc *UeCreate) SetGameExp(s string) *UeCreate {
uc.mutation.SetGameExp(s)
return uc
}
// SetNillableGameExp sets the "game_exp" field if the given value is not nil.
func (uc *UeCreate) SetNillableGameExp(s *string) *UeCreate {
if s != nil {
uc.SetGameExp(*s)
}
return uc
}
// SetGameID sets the "game_id" field.
func (uc *UeCreate) SetGameID(s string) *UeCreate {
uc.mutation.SetGameID(s)
return uc
}
// SetNillableGameID sets the "game_id" field if the given value is not nil.
func (uc *UeCreate) SetNillableGameID(s *string) *UeCreate {
if s != nil {
uc.SetGameID(*s)
}
return uc
}
// SetCreatedAt sets the "created_at" field.
func (uc *UeCreate) SetCreatedAt(t time.Time) *UeCreate {
uc.mutation.SetCreatedAt(t)
@@ -454,6 +496,18 @@ func (uc *UeCreate) createSpec() (*Ue, *sqlgraph.CreateSpec) {
_spec.SetField(ue.FieldAuthor, field.TypeString, value)
_node.Author = value
}
if value, ok := uc.mutation.GameLv(); ok {
_spec.SetField(ue.FieldGameLv, field.TypeString, value)
_node.GameLv = value
}
if value, ok := uc.mutation.GameExp(); ok {
_spec.SetField(ue.FieldGameExp, field.TypeString, value)
_node.GameExp = value
}
if value, ok := uc.mutation.GameID(); ok {
_spec.SetField(ue.FieldGameID, field.TypeString, value)
_node.GameID = value
}
if value, ok := uc.mutation.CreatedAt(); ok {
_spec.SetField(ue.FieldCreatedAt, field.TypeTime, value)
_node.CreatedAt = value