|
@@ -131,6 +131,12 @@ func (wu *WhatsappUpdate) SetNillableCallback(s *string) *WhatsappUpdate {
|
|
return wu
|
|
return wu
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+// ClearCallback clears the value of the "callback" field.
|
|
|
|
+func (wu *WhatsappUpdate) ClearCallback() *WhatsappUpdate {
|
|
|
|
+ wu.mutation.ClearCallback()
|
|
|
|
+ return wu
|
|
|
|
+}
|
|
|
|
+
|
|
// SetAccount sets the "account" field.
|
|
// SetAccount sets the "account" field.
|
|
func (wu *WhatsappUpdate) SetAccount(s string) *WhatsappUpdate {
|
|
func (wu *WhatsappUpdate) SetAccount(s string) *WhatsappUpdate {
|
|
wu.mutation.SetAccount(s)
|
|
wu.mutation.SetAccount(s)
|
|
@@ -145,6 +151,12 @@ func (wu *WhatsappUpdate) SetNillableAccount(s *string) *WhatsappUpdate {
|
|
return wu
|
|
return wu
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+// ClearAccount clears the value of the "account" field.
|
|
|
|
+func (wu *WhatsappUpdate) ClearAccount() *WhatsappUpdate {
|
|
|
|
+ wu.mutation.ClearAccount()
|
|
|
|
+ return wu
|
|
|
|
+}
|
|
|
|
+
|
|
// SetNickname sets the "nickname" field.
|
|
// SetNickname sets the "nickname" field.
|
|
func (wu *WhatsappUpdate) SetNickname(s string) *WhatsappUpdate {
|
|
func (wu *WhatsappUpdate) SetNickname(s string) *WhatsappUpdate {
|
|
wu.mutation.SetNickname(s)
|
|
wu.mutation.SetNickname(s)
|
|
@@ -434,9 +446,15 @@ func (wu *WhatsappUpdate) sqlSave(ctx context.Context) (n int, err error) {
|
|
if value, ok := wu.mutation.Callback(); ok {
|
|
if value, ok := wu.mutation.Callback(); ok {
|
|
_spec.SetField(whatsapp.FieldCallback, field.TypeString, value)
|
|
_spec.SetField(whatsapp.FieldCallback, field.TypeString, value)
|
|
}
|
|
}
|
|
|
|
+ if wu.mutation.CallbackCleared() {
|
|
|
|
+ _spec.ClearField(whatsapp.FieldCallback, field.TypeString)
|
|
|
|
+ }
|
|
if value, ok := wu.mutation.Account(); ok {
|
|
if value, ok := wu.mutation.Account(); ok {
|
|
_spec.SetField(whatsapp.FieldAccount, field.TypeString, value)
|
|
_spec.SetField(whatsapp.FieldAccount, field.TypeString, value)
|
|
}
|
|
}
|
|
|
|
+ if wu.mutation.AccountCleared() {
|
|
|
|
+ _spec.ClearField(whatsapp.FieldAccount, field.TypeString)
|
|
|
|
+ }
|
|
if value, ok := wu.mutation.Nickname(); ok {
|
|
if value, ok := wu.mutation.Nickname(); ok {
|
|
_spec.SetField(whatsapp.FieldNickname, field.TypeString, value)
|
|
_spec.SetField(whatsapp.FieldNickname, field.TypeString, value)
|
|
}
|
|
}
|
|
@@ -658,6 +676,12 @@ func (wuo *WhatsappUpdateOne) SetNillableCallback(s *string) *WhatsappUpdateOne
|
|
return wuo
|
|
return wuo
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+// ClearCallback clears the value of the "callback" field.
|
|
|
|
+func (wuo *WhatsappUpdateOne) ClearCallback() *WhatsappUpdateOne {
|
|
|
|
+ wuo.mutation.ClearCallback()
|
|
|
|
+ return wuo
|
|
|
|
+}
|
|
|
|
+
|
|
// SetAccount sets the "account" field.
|
|
// SetAccount sets the "account" field.
|
|
func (wuo *WhatsappUpdateOne) SetAccount(s string) *WhatsappUpdateOne {
|
|
func (wuo *WhatsappUpdateOne) SetAccount(s string) *WhatsappUpdateOne {
|
|
wuo.mutation.SetAccount(s)
|
|
wuo.mutation.SetAccount(s)
|
|
@@ -672,6 +696,12 @@ func (wuo *WhatsappUpdateOne) SetNillableAccount(s *string) *WhatsappUpdateOne {
|
|
return wuo
|
|
return wuo
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+// ClearAccount clears the value of the "account" field.
|
|
|
|
+func (wuo *WhatsappUpdateOne) ClearAccount() *WhatsappUpdateOne {
|
|
|
|
+ wuo.mutation.ClearAccount()
|
|
|
|
+ return wuo
|
|
|
|
+}
|
|
|
|
+
|
|
// SetNickname sets the "nickname" field.
|
|
// SetNickname sets the "nickname" field.
|
|
func (wuo *WhatsappUpdateOne) SetNickname(s string) *WhatsappUpdateOne {
|
|
func (wuo *WhatsappUpdateOne) SetNickname(s string) *WhatsappUpdateOne {
|
|
wuo.mutation.SetNickname(s)
|
|
wuo.mutation.SetNickname(s)
|
|
@@ -991,9 +1021,15 @@ func (wuo *WhatsappUpdateOne) sqlSave(ctx context.Context) (_node *Whatsapp, err
|
|
if value, ok := wuo.mutation.Callback(); ok {
|
|
if value, ok := wuo.mutation.Callback(); ok {
|
|
_spec.SetField(whatsapp.FieldCallback, field.TypeString, value)
|
|
_spec.SetField(whatsapp.FieldCallback, field.TypeString, value)
|
|
}
|
|
}
|
|
|
|
+ if wuo.mutation.CallbackCleared() {
|
|
|
|
+ _spec.ClearField(whatsapp.FieldCallback, field.TypeString)
|
|
|
|
+ }
|
|
if value, ok := wuo.mutation.Account(); ok {
|
|
if value, ok := wuo.mutation.Account(); ok {
|
|
_spec.SetField(whatsapp.FieldAccount, field.TypeString, value)
|
|
_spec.SetField(whatsapp.FieldAccount, field.TypeString, value)
|
|
}
|
|
}
|
|
|
|
+ if wuo.mutation.AccountCleared() {
|
|
|
|
+ _spec.ClearField(whatsapp.FieldAccount, field.TypeString)
|
|
|
|
+ }
|
|
if value, ok := wuo.mutation.Nickname(); ok {
|
|
if value, ok := wuo.mutation.Nickname(); ok {
|
|
_spec.SetField(whatsapp.FieldNickname, field.TypeString, value)
|
|
_spec.SetField(whatsapp.FieldNickname, field.TypeString, value)
|
|
}
|
|
}
|