add initial application structure with configuration, logging, and health check endpoints
This commit is contained in:
@@ -132,22 +132,22 @@ func (_c *EpicHeroInfoCreate) SetRawJSON(v string) *EpicHeroInfoCreate {
|
||||
return _c
|
||||
}
|
||||
|
||||
// SetSetContentJSON sets the "set_content_json" field.
|
||||
func (_c *EpicHeroInfoCreate) SetSetContentJSON(v string) *EpicHeroInfoCreate {
|
||||
_c.mutation.SetSetContentJSON(v)
|
||||
// SetContentJSONSet sets the "content_json_set" field.
|
||||
func (_c *EpicHeroInfoCreate) SetContentJSONSet(v string) *EpicHeroInfoCreate {
|
||||
_c.mutation.SetContentJSONSet(v)
|
||||
return _c
|
||||
}
|
||||
|
||||
// SetSetUpdateTime sets the "set_update_time" field.
|
||||
func (_c *EpicHeroInfoCreate) SetSetUpdateTime(v time.Time) *EpicHeroInfoCreate {
|
||||
_c.mutation.SetSetUpdateTime(v)
|
||||
// SetUpdateTimeSet sets the "update_time_set" field.
|
||||
func (_c *EpicHeroInfoCreate) SetUpdateTimeSet(v time.Time) *EpicHeroInfoCreate {
|
||||
_c.mutation.SetUpdateTimeSet(v)
|
||||
return _c
|
||||
}
|
||||
|
||||
// SetNillableSetUpdateTime sets the "set_update_time" field if the given value is not nil.
|
||||
func (_c *EpicHeroInfoCreate) SetNillableSetUpdateTime(v *time.Time) *EpicHeroInfoCreate {
|
||||
// SetNillableUpdateTimeSet sets the "update_time_set" field if the given value is not nil.
|
||||
func (_c *EpicHeroInfoCreate) SetNillableUpdateTimeSet(v *time.Time) *EpicHeroInfoCreate {
|
||||
if v != nil {
|
||||
_c.SetSetUpdateTime(*v)
|
||||
_c.SetUpdateTimeSet(*v)
|
||||
}
|
||||
return _c
|
||||
}
|
||||
@@ -299,12 +299,12 @@ func (_c *EpicHeroInfoCreate) check() error {
|
||||
return &ValidationError{Name: "raw_json", err: fmt.Errorf(`ent: validator failed for field "EpicHeroInfo.raw_json": %w`, err)}
|
||||
}
|
||||
}
|
||||
if _, ok := _c.mutation.SetContentJSON(); !ok {
|
||||
return &ValidationError{Name: "set_content_json", err: errors.New(`ent: missing required field "EpicHeroInfo.set_content_json"`)}
|
||||
if _, ok := _c.mutation.ContentJSONSet(); !ok {
|
||||
return &ValidationError{Name: "content_json_set", err: errors.New(`ent: missing required field "EpicHeroInfo.content_json_set"`)}
|
||||
}
|
||||
if v, ok := _c.mutation.SetContentJSON(); ok {
|
||||
if err := epicheroinfo.SetContentJSONValidator(v); err != nil {
|
||||
return &ValidationError{Name: "set_content_json", err: fmt.Errorf(`ent: validator failed for field "EpicHeroInfo.set_content_json": %w`, err)}
|
||||
if v, ok := _c.mutation.ContentJSONSet(); ok {
|
||||
if err := epicheroinfo.ContentJSONSetValidator(v); err != nil {
|
||||
return &ValidationError{Name: "content_json_set", err: fmt.Errorf(`ent: validator failed for field "EpicHeroInfo.content_json_set": %w`, err)}
|
||||
}
|
||||
}
|
||||
return nil
|
||||
@@ -403,13 +403,13 @@ func (_c *EpicHeroInfoCreate) createSpec() (*EpicHeroInfo, *sqlgraph.CreateSpec)
|
||||
_spec.SetField(epicheroinfo.FieldRawJSON, field.TypeString, value)
|
||||
_node.RawJSON = value
|
||||
}
|
||||
if value, ok := _c.mutation.SetContentJSON(); ok {
|
||||
_spec.SetField(epicheroinfo.FieldSetContentJSON, field.TypeString, value)
|
||||
_node.SetContentJSON = value
|
||||
if value, ok := _c.mutation.ContentJSONSet(); ok {
|
||||
_spec.SetField(epicheroinfo.FieldContentJSONSet, field.TypeString, value)
|
||||
_node.ContentJSONSet = value
|
||||
}
|
||||
if value, ok := _c.mutation.SetUpdateTime(); ok {
|
||||
_spec.SetField(epicheroinfo.FieldSetUpdateTime, field.TypeTime, value)
|
||||
_node.SetUpdateTime = &value
|
||||
if value, ok := _c.mutation.UpdateTimeSet(); ok {
|
||||
_spec.SetField(epicheroinfo.FieldUpdateTimeSet, field.TypeTime, value)
|
||||
_node.UpdateTimeSet = &value
|
||||
}
|
||||
return _node, _spec
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user