|
@@ -318,20 +318,6 @@ func (cc *ContactCreate) SetNillableCtype(u *uint64) *ContactCreate {
|
|
|
return cc
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-func (cc *ContactCreate) SetCsex(i int) *ContactCreate {
|
|
|
- cc.mutation.SetCsex(i)
|
|
|
- return cc
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
-func (cc *ContactCreate) SetNillableCsex(i *int) *ContactCreate {
|
|
|
- if i != nil {
|
|
|
- cc.SetCsex(*i)
|
|
|
- }
|
|
|
- return cc
|
|
|
-}
|
|
|
-
|
|
|
|
|
|
func (cc *ContactCreate) SetCage(i int) *ContactCreate {
|
|
|
cc.mutation.SetCage(i)
|
|
@@ -374,20 +360,6 @@ func (cc *ContactCreate) SetNillableCarea(s *string) *ContactCreate {
|
|
|
return cc
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-func (cc *ContactCreate) SetCmobile(s string) *ContactCreate {
|
|
|
- cc.mutation.SetCmobile(s)
|
|
|
- return cc
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
-func (cc *ContactCreate) SetNillableCmobile(s *string) *ContactCreate {
|
|
|
- if s != nil {
|
|
|
- cc.SetCmobile(*s)
|
|
|
- }
|
|
|
- return cc
|
|
|
-}
|
|
|
-
|
|
|
|
|
|
func (cc *ContactCreate) SetCbirthday(s string) *ContactCreate {
|
|
|
cc.mutation.SetCbirthday(s)
|
|
@@ -631,10 +603,6 @@ func (cc *ContactCreate) defaults() error {
|
|
|
v := contact.DefaultCtype
|
|
|
cc.mutation.SetCtype(v)
|
|
|
}
|
|
|
- if _, ok := cc.mutation.Csex(); !ok {
|
|
|
- v := contact.DefaultCsex
|
|
|
- cc.mutation.SetCsex(v)
|
|
|
- }
|
|
|
if _, ok := cc.mutation.Cage(); !ok {
|
|
|
v := contact.DefaultCage
|
|
|
cc.mutation.SetCage(v)
|
|
@@ -647,10 +615,6 @@ func (cc *ContactCreate) defaults() error {
|
|
|
v := contact.DefaultCarea
|
|
|
cc.mutation.SetCarea(v)
|
|
|
}
|
|
|
- if _, ok := cc.mutation.Cmobile(); !ok {
|
|
|
- v := contact.DefaultCmobile
|
|
|
- cc.mutation.SetCmobile(v)
|
|
|
- }
|
|
|
if _, ok := cc.mutation.Cbirthday(); !ok {
|
|
|
v := contact.DefaultCbirthday
|
|
|
cc.mutation.SetCbirthday(v)
|
|
@@ -731,9 +695,6 @@ func (cc *ContactCreate) check() error {
|
|
|
if _, ok := cc.mutation.Ctype(); !ok {
|
|
|
return &ValidationError{Name: "ctype", err: errors.New(`ent: missing required field "Contact.ctype"`)}
|
|
|
}
|
|
|
- if _, ok := cc.mutation.Csex(); !ok {
|
|
|
- return &ValidationError{Name: "csex", err: errors.New(`ent: missing required field "Contact.csex"`)}
|
|
|
- }
|
|
|
if _, ok := cc.mutation.Cage(); !ok {
|
|
|
return &ValidationError{Name: "cage", err: errors.New(`ent: missing required field "Contact.cage"`)}
|
|
|
}
|
|
@@ -743,9 +704,6 @@ func (cc *ContactCreate) check() error {
|
|
|
if _, ok := cc.mutation.Carea(); !ok {
|
|
|
return &ValidationError{Name: "carea", err: errors.New(`ent: missing required field "Contact.carea"`)}
|
|
|
}
|
|
|
- if _, ok := cc.mutation.Cmobile(); !ok {
|
|
|
- return &ValidationError{Name: "cmobile", err: errors.New(`ent: missing required field "Contact.cmobile"`)}
|
|
|
- }
|
|
|
if _, ok := cc.mutation.Cbirthday(); !ok {
|
|
|
return &ValidationError{Name: "cbirthday", err: errors.New(`ent: missing required field "Contact.cbirthday"`)}
|
|
|
}
|
|
@@ -881,10 +839,6 @@ func (cc *ContactCreate) createSpec() (*Contact, *sqlgraph.CreateSpec) {
|
|
|
_spec.SetField(contact.FieldCtype, field.TypeUint64, value)
|
|
|
_node.Ctype = value
|
|
|
}
|
|
|
- if value, ok := cc.mutation.Csex(); ok {
|
|
|
- _spec.SetField(contact.FieldCsex, field.TypeInt, value)
|
|
|
- _node.Csex = value
|
|
|
- }
|
|
|
if value, ok := cc.mutation.Cage(); ok {
|
|
|
_spec.SetField(contact.FieldCage, field.TypeInt, value)
|
|
|
_node.Cage = value
|
|
@@ -897,10 +851,6 @@ func (cc *ContactCreate) createSpec() (*Contact, *sqlgraph.CreateSpec) {
|
|
|
_spec.SetField(contact.FieldCarea, field.TypeString, value)
|
|
|
_node.Carea = value
|
|
|
}
|
|
|
- if value, ok := cc.mutation.Cmobile(); ok {
|
|
|
- _spec.SetField(contact.FieldCmobile, field.TypeString, value)
|
|
|
- _node.Cmobile = value
|
|
|
- }
|
|
|
if value, ok := cc.mutation.Cbirthday(); ok {
|
|
|
_spec.SetField(contact.FieldCbirthday, field.TypeString, value)
|
|
|
_node.Cbirthday = value
|
|
@@ -1315,24 +1265,6 @@ func (u *ContactUpsert) AddCtype(v uint64) *ContactUpsert {
|
|
|
return u
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-func (u *ContactUpsert) SetCsex(v int) *ContactUpsert {
|
|
|
- u.Set(contact.FieldCsex, v)
|
|
|
- return u
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
-func (u *ContactUpsert) UpdateCsex() *ContactUpsert {
|
|
|
- u.SetExcluded(contact.FieldCsex)
|
|
|
- return u
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
-func (u *ContactUpsert) AddCsex(v int) *ContactUpsert {
|
|
|
- u.Add(contact.FieldCsex, v)
|
|
|
- return u
|
|
|
-}
|
|
|
-
|
|
|
|
|
|
func (u *ContactUpsert) SetCage(v int) *ContactUpsert {
|
|
|
u.Set(contact.FieldCage, v)
|
|
@@ -1375,18 +1307,6 @@ func (u *ContactUpsert) UpdateCarea() *ContactUpsert {
|
|
|
return u
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-func (u *ContactUpsert) SetCmobile(v string) *ContactUpsert {
|
|
|
- u.Set(contact.FieldCmobile, v)
|
|
|
- return u
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
-func (u *ContactUpsert) UpdateCmobile() *ContactUpsert {
|
|
|
- u.SetExcluded(contact.FieldCmobile)
|
|
|
- return u
|
|
|
-}
|
|
|
-
|
|
|
|
|
|
func (u *ContactUpsert) SetCbirthday(v string) *ContactUpsert {
|
|
|
u.Set(contact.FieldCbirthday, v)
|
|
@@ -1867,27 +1787,6 @@ func (u *ContactUpsertOne) UpdateCtype() *ContactUpsertOne {
|
|
|
})
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-func (u *ContactUpsertOne) SetCsex(v int) *ContactUpsertOne {
|
|
|
- return u.Update(func(s *ContactUpsert) {
|
|
|
- s.SetCsex(v)
|
|
|
- })
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
-func (u *ContactUpsertOne) AddCsex(v int) *ContactUpsertOne {
|
|
|
- return u.Update(func(s *ContactUpsert) {
|
|
|
- s.AddCsex(v)
|
|
|
- })
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
-func (u *ContactUpsertOne) UpdateCsex() *ContactUpsertOne {
|
|
|
- return u.Update(func(s *ContactUpsert) {
|
|
|
- s.UpdateCsex()
|
|
|
- })
|
|
|
-}
|
|
|
-
|
|
|
|
|
|
func (u *ContactUpsertOne) SetCage(v int) *ContactUpsertOne {
|
|
|
return u.Update(func(s *ContactUpsert) {
|
|
@@ -1937,20 +1836,6 @@ func (u *ContactUpsertOne) UpdateCarea() *ContactUpsertOne {
|
|
|
})
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-func (u *ContactUpsertOne) SetCmobile(v string) *ContactUpsertOne {
|
|
|
- return u.Update(func(s *ContactUpsert) {
|
|
|
- s.SetCmobile(v)
|
|
|
- })
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
-func (u *ContactUpsertOne) UpdateCmobile() *ContactUpsertOne {
|
|
|
- return u.Update(func(s *ContactUpsert) {
|
|
|
- s.UpdateCmobile()
|
|
|
- })
|
|
|
-}
|
|
|
-
|
|
|
|
|
|
func (u *ContactUpsertOne) SetCbirthday(v string) *ContactUpsertOne {
|
|
|
return u.Update(func(s *ContactUpsert) {
|
|
@@ -2609,27 +2494,6 @@ func (u *ContactUpsertBulk) UpdateCtype() *ContactUpsertBulk {
|
|
|
})
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-func (u *ContactUpsertBulk) SetCsex(v int) *ContactUpsertBulk {
|
|
|
- return u.Update(func(s *ContactUpsert) {
|
|
|
- s.SetCsex(v)
|
|
|
- })
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
-func (u *ContactUpsertBulk) AddCsex(v int) *ContactUpsertBulk {
|
|
|
- return u.Update(func(s *ContactUpsert) {
|
|
|
- s.AddCsex(v)
|
|
|
- })
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
-func (u *ContactUpsertBulk) UpdateCsex() *ContactUpsertBulk {
|
|
|
- return u.Update(func(s *ContactUpsert) {
|
|
|
- s.UpdateCsex()
|
|
|
- })
|
|
|
-}
|
|
|
-
|
|
|
|
|
|
func (u *ContactUpsertBulk) SetCage(v int) *ContactUpsertBulk {
|
|
|
return u.Update(func(s *ContactUpsert) {
|
|
@@ -2679,20 +2543,6 @@ func (u *ContactUpsertBulk) UpdateCarea() *ContactUpsertBulk {
|
|
|
})
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-func (u *ContactUpsertBulk) SetCmobile(v string) *ContactUpsertBulk {
|
|
|
- return u.Update(func(s *ContactUpsert) {
|
|
|
- s.SetCmobile(v)
|
|
|
- })
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
-func (u *ContactUpsertBulk) UpdateCmobile() *ContactUpsertBulk {
|
|
|
- return u.Update(func(s *ContactUpsert) {
|
|
|
- s.UpdateCmobile()
|
|
|
- })
|
|
|
-}
|
|
|
-
|
|
|
|
|
|
func (u *ContactUpsertBulk) SetCbirthday(v string) *ContactUpsertBulk {
|
|
|
return u.Update(func(s *ContactUpsert) {
|