|
@@ -148,20 +148,6 @@ func (mc *MsgCreate) SetNillableBatchNo(s *string) *MsgCreate {
|
|
|
return mc
|
|
|
}
|
|
|
|
|
|
-// SetCtype sets the "ctype" field.
|
|
|
-func (mc *MsgCreate) SetCtype(u uint64) *MsgCreate {
|
|
|
- mc.mutation.SetCtype(u)
|
|
|
- return mc
|
|
|
-}
|
|
|
-
|
|
|
-// SetNillableCtype sets the "ctype" field if the given value is not nil.
|
|
|
-func (mc *MsgCreate) SetNillableCtype(u *uint64) *MsgCreate {
|
|
|
- if u != nil {
|
|
|
- mc.SetCtype(*u)
|
|
|
- }
|
|
|
- return mc
|
|
|
-}
|
|
|
-
|
|
|
// SetCc sets the "cc" field.
|
|
|
func (mc *MsgCreate) SetCc(s string) *MsgCreate {
|
|
|
mc.mutation.SetCc(s)
|
|
@@ -247,10 +233,6 @@ func (mc *MsgCreate) defaults() error {
|
|
|
v := msg.DefaultUpdatedAt()
|
|
|
mc.mutation.SetUpdatedAt(v)
|
|
|
}
|
|
|
- if _, ok := mc.mutation.Ctype(); !ok {
|
|
|
- v := msg.DefaultCtype
|
|
|
- mc.mutation.SetCtype(v)
|
|
|
- }
|
|
|
if _, ok := mc.mutation.Cc(); !ok {
|
|
|
v := msg.DefaultCc
|
|
|
mc.mutation.SetCc(v)
|
|
@@ -270,9 +252,6 @@ func (mc *MsgCreate) check() error {
|
|
|
if _, ok := mc.mutation.UpdatedAt(); !ok {
|
|
|
return &ValidationError{Name: "updated_at", err: errors.New(`ent: missing required field "Msg.updated_at"`)}
|
|
|
}
|
|
|
- if _, ok := mc.mutation.Ctype(); !ok {
|
|
|
- return &ValidationError{Name: "ctype", err: errors.New(`ent: missing required field "Msg.ctype"`)}
|
|
|
- }
|
|
|
if _, ok := mc.mutation.Cc(); !ok {
|
|
|
return &ValidationError{Name: "cc", err: errors.New(`ent: missing required field "Msg.cc"`)}
|
|
|
}
|
|
@@ -348,10 +327,6 @@ func (mc *MsgCreate) createSpec() (*Msg, *sqlgraph.CreateSpec) {
|
|
|
_spec.SetField(msg.FieldBatchNo, field.TypeString, value)
|
|
|
_node.BatchNo = value
|
|
|
}
|
|
|
- if value, ok := mc.mutation.Ctype(); ok {
|
|
|
- _spec.SetField(msg.FieldCtype, field.TypeUint64, value)
|
|
|
- _node.Ctype = value
|
|
|
- }
|
|
|
if value, ok := mc.mutation.Cc(); ok {
|
|
|
_spec.SetField(msg.FieldCc, field.TypeString, value)
|
|
|
_node.Cc = value
|
|
@@ -562,24 +537,6 @@ func (u *MsgUpsert) ClearBatchNo() *MsgUpsert {
|
|
|
return u
|
|
|
}
|
|
|
|
|
|
-// SetCtype sets the "ctype" field.
|
|
|
-func (u *MsgUpsert) SetCtype(v uint64) *MsgUpsert {
|
|
|
- u.Set(msg.FieldCtype, v)
|
|
|
- return u
|
|
|
-}
|
|
|
-
|
|
|
-// UpdateCtype sets the "ctype" field to the value that was provided on create.
|
|
|
-func (u *MsgUpsert) UpdateCtype() *MsgUpsert {
|
|
|
- u.SetExcluded(msg.FieldCtype)
|
|
|
- return u
|
|
|
-}
|
|
|
-
|
|
|
-// AddCtype adds v to the "ctype" field.
|
|
|
-func (u *MsgUpsert) AddCtype(v uint64) *MsgUpsert {
|
|
|
- u.Add(msg.FieldCtype, v)
|
|
|
- return u
|
|
|
-}
|
|
|
-
|
|
|
// SetCc sets the "cc" field.
|
|
|
func (u *MsgUpsert) SetCc(v string) *MsgUpsert {
|
|
|
u.Set(msg.FieldCc, v)
|
|
@@ -830,27 +787,6 @@ func (u *MsgUpsertOne) ClearBatchNo() *MsgUpsertOne {
|
|
|
})
|
|
|
}
|
|
|
|
|
|
-// SetCtype sets the "ctype" field.
|
|
|
-func (u *MsgUpsertOne) SetCtype(v uint64) *MsgUpsertOne {
|
|
|
- return u.Update(func(s *MsgUpsert) {
|
|
|
- s.SetCtype(v)
|
|
|
- })
|
|
|
-}
|
|
|
-
|
|
|
-// AddCtype adds v to the "ctype" field.
|
|
|
-func (u *MsgUpsertOne) AddCtype(v uint64) *MsgUpsertOne {
|
|
|
- return u.Update(func(s *MsgUpsert) {
|
|
|
- s.AddCtype(v)
|
|
|
- })
|
|
|
-}
|
|
|
-
|
|
|
-// UpdateCtype sets the "ctype" field to the value that was provided on create.
|
|
|
-func (u *MsgUpsertOne) UpdateCtype() *MsgUpsertOne {
|
|
|
- return u.Update(func(s *MsgUpsert) {
|
|
|
- s.UpdateCtype()
|
|
|
- })
|
|
|
-}
|
|
|
-
|
|
|
// SetCc sets the "cc" field.
|
|
|
func (u *MsgUpsertOne) SetCc(v string) *MsgUpsertOne {
|
|
|
return u.Update(func(s *MsgUpsert) {
|
|
@@ -1271,27 +1207,6 @@ func (u *MsgUpsertBulk) ClearBatchNo() *MsgUpsertBulk {
|
|
|
})
|
|
|
}
|
|
|
|
|
|
-// SetCtype sets the "ctype" field.
|
|
|
-func (u *MsgUpsertBulk) SetCtype(v uint64) *MsgUpsertBulk {
|
|
|
- return u.Update(func(s *MsgUpsert) {
|
|
|
- s.SetCtype(v)
|
|
|
- })
|
|
|
-}
|
|
|
-
|
|
|
-// AddCtype adds v to the "ctype" field.
|
|
|
-func (u *MsgUpsertBulk) AddCtype(v uint64) *MsgUpsertBulk {
|
|
|
- return u.Update(func(s *MsgUpsert) {
|
|
|
- s.AddCtype(v)
|
|
|
- })
|
|
|
-}
|
|
|
-
|
|
|
-// UpdateCtype sets the "ctype" field to the value that was provided on create.
|
|
|
-func (u *MsgUpsertBulk) UpdateCtype() *MsgUpsertBulk {
|
|
|
- return u.Update(func(s *MsgUpsert) {
|
|
|
- s.UpdateCtype()
|
|
|
- })
|
|
|
-}
|
|
|
-
|
|
|
// SetCc sets the "cc" field.
|
|
|
func (u *MsgUpsertBulk) SetCc(v string) *MsgUpsertBulk {
|
|
|
return u.Update(func(s *MsgUpsert) {
|