1
0

fix game story

This commit is contained in:
2024-06-08 01:02:15 +09:00
parent e508a50025
commit a01e86d8b3
21 changed files with 2291 additions and 85 deletions

View File

@@ -307,6 +307,34 @@ func (uc *UeCreate) SetNillableGameID(s *string) *UeCreate {
return uc
}
// SetGameStory sets the "game_story" field.
func (uc *UeCreate) SetGameStory(i int) *UeCreate {
uc.mutation.SetGameStory(i)
return uc
}
// SetNillableGameStory sets the "game_story" field if the given value is not nil.
func (uc *UeCreate) SetNillableGameStory(i *int) *UeCreate {
if i != nil {
uc.SetGameStory(*i)
}
return uc
}
// SetGameEp sets the "game_ep" field.
func (uc *UeCreate) SetGameEp(s string) *UeCreate {
uc.mutation.SetGameEp(s)
return uc
}
// SetNillableGameEp sets the "game_ep" field if the given value is not nil.
func (uc *UeCreate) SetNillableGameEp(s *string) *UeCreate {
if s != nil {
uc.SetGameEp(*s)
}
return uc
}
// SetCreatedAt sets the "created_at" field.
func (uc *UeCreate) SetCreatedAt(t time.Time) *UeCreate {
uc.mutation.SetCreatedAt(t)
@@ -508,6 +536,14 @@ func (uc *UeCreate) createSpec() (*Ue, *sqlgraph.CreateSpec) {
_spec.SetField(ue.FieldGameID, field.TypeString, value)
_node.GameID = value
}
if value, ok := uc.mutation.GameStory(); ok {
_spec.SetField(ue.FieldGameStory, field.TypeInt, value)
_node.GameStory = value
}
if value, ok := uc.mutation.GameEp(); ok {
_spec.SetField(ue.FieldGameEp, field.TypeString, value)
_node.GameEp = value
}
if value, ok := uc.mutation.CreatedAt(); ok {
_spec.SetField(ue.FieldCreatedAt, field.TypeTime, value)
_node.CreatedAt = value