feat: 大屏新增虚拟工位滚动栏与多订单轮播,附件表增加删除原因及彻底清除留痕字段
This commit is contained in:
@@ -199,6 +199,48 @@ func (_c *AttachmentCreate) SetNillableDeletedBy(v *string) *AttachmentCreate {
|
||||
return _c
|
||||
}
|
||||
|
||||
// SetDeletedReason sets the "deleted_reason" field.
|
||||
func (_c *AttachmentCreate) SetDeletedReason(v string) *AttachmentCreate {
|
||||
_c.mutation.SetDeletedReason(v)
|
||||
return _c
|
||||
}
|
||||
|
||||
// SetNillableDeletedReason sets the "deleted_reason" field if the given value is not nil.
|
||||
func (_c *AttachmentCreate) SetNillableDeletedReason(v *string) *AttachmentCreate {
|
||||
if v != nil {
|
||||
_c.SetDeletedReason(*v)
|
||||
}
|
||||
return _c
|
||||
}
|
||||
|
||||
// SetPurgedAt sets the "purged_at" field.
|
||||
func (_c *AttachmentCreate) SetPurgedAt(v int64) *AttachmentCreate {
|
||||
_c.mutation.SetPurgedAt(v)
|
||||
return _c
|
||||
}
|
||||
|
||||
// SetNillablePurgedAt sets the "purged_at" field if the given value is not nil.
|
||||
func (_c *AttachmentCreate) SetNillablePurgedAt(v *int64) *AttachmentCreate {
|
||||
if v != nil {
|
||||
_c.SetPurgedAt(*v)
|
||||
}
|
||||
return _c
|
||||
}
|
||||
|
||||
// SetPurgedBy sets the "purged_by" field.
|
||||
func (_c *AttachmentCreate) SetPurgedBy(v string) *AttachmentCreate {
|
||||
_c.mutation.SetPurgedBy(v)
|
||||
return _c
|
||||
}
|
||||
|
||||
// SetNillablePurgedBy sets the "purged_by" field if the given value is not nil.
|
||||
func (_c *AttachmentCreate) SetNillablePurgedBy(v *string) *AttachmentCreate {
|
||||
if v != nil {
|
||||
_c.SetPurgedBy(*v)
|
||||
}
|
||||
return _c
|
||||
}
|
||||
|
||||
// SetCreatedAt sets the "created_at" field.
|
||||
func (_c *AttachmentCreate) SetCreatedAt(v int64) *AttachmentCreate {
|
||||
_c.mutation.SetCreatedAt(v)
|
||||
@@ -379,6 +421,18 @@ func (_c *AttachmentCreate) createSpec() (*Attachment, *sqlgraph.CreateSpec) {
|
||||
_spec.SetField(attachment.FieldDeletedBy, field.TypeString, value)
|
||||
_node.DeletedBy = value
|
||||
}
|
||||
if value, ok := _c.mutation.DeletedReason(); ok {
|
||||
_spec.SetField(attachment.FieldDeletedReason, field.TypeString, value)
|
||||
_node.DeletedReason = value
|
||||
}
|
||||
if value, ok := _c.mutation.PurgedAt(); ok {
|
||||
_spec.SetField(attachment.FieldPurgedAt, field.TypeInt64, value)
|
||||
_node.PurgedAt = value
|
||||
}
|
||||
if value, ok := _c.mutation.PurgedBy(); ok {
|
||||
_spec.SetField(attachment.FieldPurgedBy, field.TypeString, value)
|
||||
_node.PurgedBy = value
|
||||
}
|
||||
if value, ok := _c.mutation.CreatedAt(); ok {
|
||||
_spec.SetField(attachment.FieldCreatedAt, field.TypeInt64, value)
|
||||
_node.CreatedAt = value
|
||||
@@ -681,6 +735,66 @@ func (u *AttachmentUpsert) ClearDeletedBy() *AttachmentUpsert {
|
||||
return u
|
||||
}
|
||||
|
||||
// SetDeletedReason sets the "deleted_reason" field.
|
||||
func (u *AttachmentUpsert) SetDeletedReason(v string) *AttachmentUpsert {
|
||||
u.Set(attachment.FieldDeletedReason, v)
|
||||
return u
|
||||
}
|
||||
|
||||
// UpdateDeletedReason sets the "deleted_reason" field to the value that was provided on create.
|
||||
func (u *AttachmentUpsert) UpdateDeletedReason() *AttachmentUpsert {
|
||||
u.SetExcluded(attachment.FieldDeletedReason)
|
||||
return u
|
||||
}
|
||||
|
||||
// ClearDeletedReason clears the value of the "deleted_reason" field.
|
||||
func (u *AttachmentUpsert) ClearDeletedReason() *AttachmentUpsert {
|
||||
u.SetNull(attachment.FieldDeletedReason)
|
||||
return u
|
||||
}
|
||||
|
||||
// SetPurgedAt sets the "purged_at" field.
|
||||
func (u *AttachmentUpsert) SetPurgedAt(v int64) *AttachmentUpsert {
|
||||
u.Set(attachment.FieldPurgedAt, v)
|
||||
return u
|
||||
}
|
||||
|
||||
// UpdatePurgedAt sets the "purged_at" field to the value that was provided on create.
|
||||
func (u *AttachmentUpsert) UpdatePurgedAt() *AttachmentUpsert {
|
||||
u.SetExcluded(attachment.FieldPurgedAt)
|
||||
return u
|
||||
}
|
||||
|
||||
// AddPurgedAt adds v to the "purged_at" field.
|
||||
func (u *AttachmentUpsert) AddPurgedAt(v int64) *AttachmentUpsert {
|
||||
u.Add(attachment.FieldPurgedAt, v)
|
||||
return u
|
||||
}
|
||||
|
||||
// ClearPurgedAt clears the value of the "purged_at" field.
|
||||
func (u *AttachmentUpsert) ClearPurgedAt() *AttachmentUpsert {
|
||||
u.SetNull(attachment.FieldPurgedAt)
|
||||
return u
|
||||
}
|
||||
|
||||
// SetPurgedBy sets the "purged_by" field.
|
||||
func (u *AttachmentUpsert) SetPurgedBy(v string) *AttachmentUpsert {
|
||||
u.Set(attachment.FieldPurgedBy, v)
|
||||
return u
|
||||
}
|
||||
|
||||
// UpdatePurgedBy sets the "purged_by" field to the value that was provided on create.
|
||||
func (u *AttachmentUpsert) UpdatePurgedBy() *AttachmentUpsert {
|
||||
u.SetExcluded(attachment.FieldPurgedBy)
|
||||
return u
|
||||
}
|
||||
|
||||
// ClearPurgedBy clears the value of the "purged_by" field.
|
||||
func (u *AttachmentUpsert) ClearPurgedBy() *AttachmentUpsert {
|
||||
u.SetNull(attachment.FieldPurgedBy)
|
||||
return u
|
||||
}
|
||||
|
||||
// SetCreatedAt sets the "created_at" field.
|
||||
func (u *AttachmentUpsert) SetCreatedAt(v int64) *AttachmentUpsert {
|
||||
u.Set(attachment.FieldCreatedAt, v)
|
||||
@@ -1026,6 +1140,76 @@ func (u *AttachmentUpsertOne) ClearDeletedBy() *AttachmentUpsertOne {
|
||||
})
|
||||
}
|
||||
|
||||
// SetDeletedReason sets the "deleted_reason" field.
|
||||
func (u *AttachmentUpsertOne) SetDeletedReason(v string) *AttachmentUpsertOne {
|
||||
return u.Update(func(s *AttachmentUpsert) {
|
||||
s.SetDeletedReason(v)
|
||||
})
|
||||
}
|
||||
|
||||
// UpdateDeletedReason sets the "deleted_reason" field to the value that was provided on create.
|
||||
func (u *AttachmentUpsertOne) UpdateDeletedReason() *AttachmentUpsertOne {
|
||||
return u.Update(func(s *AttachmentUpsert) {
|
||||
s.UpdateDeletedReason()
|
||||
})
|
||||
}
|
||||
|
||||
// ClearDeletedReason clears the value of the "deleted_reason" field.
|
||||
func (u *AttachmentUpsertOne) ClearDeletedReason() *AttachmentUpsertOne {
|
||||
return u.Update(func(s *AttachmentUpsert) {
|
||||
s.ClearDeletedReason()
|
||||
})
|
||||
}
|
||||
|
||||
// SetPurgedAt sets the "purged_at" field.
|
||||
func (u *AttachmentUpsertOne) SetPurgedAt(v int64) *AttachmentUpsertOne {
|
||||
return u.Update(func(s *AttachmentUpsert) {
|
||||
s.SetPurgedAt(v)
|
||||
})
|
||||
}
|
||||
|
||||
// AddPurgedAt adds v to the "purged_at" field.
|
||||
func (u *AttachmentUpsertOne) AddPurgedAt(v int64) *AttachmentUpsertOne {
|
||||
return u.Update(func(s *AttachmentUpsert) {
|
||||
s.AddPurgedAt(v)
|
||||
})
|
||||
}
|
||||
|
||||
// UpdatePurgedAt sets the "purged_at" field to the value that was provided on create.
|
||||
func (u *AttachmentUpsertOne) UpdatePurgedAt() *AttachmentUpsertOne {
|
||||
return u.Update(func(s *AttachmentUpsert) {
|
||||
s.UpdatePurgedAt()
|
||||
})
|
||||
}
|
||||
|
||||
// ClearPurgedAt clears the value of the "purged_at" field.
|
||||
func (u *AttachmentUpsertOne) ClearPurgedAt() *AttachmentUpsertOne {
|
||||
return u.Update(func(s *AttachmentUpsert) {
|
||||
s.ClearPurgedAt()
|
||||
})
|
||||
}
|
||||
|
||||
// SetPurgedBy sets the "purged_by" field.
|
||||
func (u *AttachmentUpsertOne) SetPurgedBy(v string) *AttachmentUpsertOne {
|
||||
return u.Update(func(s *AttachmentUpsert) {
|
||||
s.SetPurgedBy(v)
|
||||
})
|
||||
}
|
||||
|
||||
// UpdatePurgedBy sets the "purged_by" field to the value that was provided on create.
|
||||
func (u *AttachmentUpsertOne) UpdatePurgedBy() *AttachmentUpsertOne {
|
||||
return u.Update(func(s *AttachmentUpsert) {
|
||||
s.UpdatePurgedBy()
|
||||
})
|
||||
}
|
||||
|
||||
// ClearPurgedBy clears the value of the "purged_by" field.
|
||||
func (u *AttachmentUpsertOne) ClearPurgedBy() *AttachmentUpsertOne {
|
||||
return u.Update(func(s *AttachmentUpsert) {
|
||||
s.ClearPurgedBy()
|
||||
})
|
||||
}
|
||||
|
||||
// SetCreatedAt sets the "created_at" field.
|
||||
func (u *AttachmentUpsertOne) SetCreatedAt(v int64) *AttachmentUpsertOne {
|
||||
return u.Update(func(s *AttachmentUpsert) {
|
||||
@@ -1538,6 +1722,76 @@ func (u *AttachmentUpsertBulk) ClearDeletedBy() *AttachmentUpsertBulk {
|
||||
})
|
||||
}
|
||||
|
||||
// SetDeletedReason sets the "deleted_reason" field.
|
||||
func (u *AttachmentUpsertBulk) SetDeletedReason(v string) *AttachmentUpsertBulk {
|
||||
return u.Update(func(s *AttachmentUpsert) {
|
||||
s.SetDeletedReason(v)
|
||||
})
|
||||
}
|
||||
|
||||
// UpdateDeletedReason sets the "deleted_reason" field to the value that was provided on create.
|
||||
func (u *AttachmentUpsertBulk) UpdateDeletedReason() *AttachmentUpsertBulk {
|
||||
return u.Update(func(s *AttachmentUpsert) {
|
||||
s.UpdateDeletedReason()
|
||||
})
|
||||
}
|
||||
|
||||
// ClearDeletedReason clears the value of the "deleted_reason" field.
|
||||
func (u *AttachmentUpsertBulk) ClearDeletedReason() *AttachmentUpsertBulk {
|
||||
return u.Update(func(s *AttachmentUpsert) {
|
||||
s.ClearDeletedReason()
|
||||
})
|
||||
}
|
||||
|
||||
// SetPurgedAt sets the "purged_at" field.
|
||||
func (u *AttachmentUpsertBulk) SetPurgedAt(v int64) *AttachmentUpsertBulk {
|
||||
return u.Update(func(s *AttachmentUpsert) {
|
||||
s.SetPurgedAt(v)
|
||||
})
|
||||
}
|
||||
|
||||
// AddPurgedAt adds v to the "purged_at" field.
|
||||
func (u *AttachmentUpsertBulk) AddPurgedAt(v int64) *AttachmentUpsertBulk {
|
||||
return u.Update(func(s *AttachmentUpsert) {
|
||||
s.AddPurgedAt(v)
|
||||
})
|
||||
}
|
||||
|
||||
// UpdatePurgedAt sets the "purged_at" field to the value that was provided on create.
|
||||
func (u *AttachmentUpsertBulk) UpdatePurgedAt() *AttachmentUpsertBulk {
|
||||
return u.Update(func(s *AttachmentUpsert) {
|
||||
s.UpdatePurgedAt()
|
||||
})
|
||||
}
|
||||
|
||||
// ClearPurgedAt clears the value of the "purged_at" field.
|
||||
func (u *AttachmentUpsertBulk) ClearPurgedAt() *AttachmentUpsertBulk {
|
||||
return u.Update(func(s *AttachmentUpsert) {
|
||||
s.ClearPurgedAt()
|
||||
})
|
||||
}
|
||||
|
||||
// SetPurgedBy sets the "purged_by" field.
|
||||
func (u *AttachmentUpsertBulk) SetPurgedBy(v string) *AttachmentUpsertBulk {
|
||||
return u.Update(func(s *AttachmentUpsert) {
|
||||
s.SetPurgedBy(v)
|
||||
})
|
||||
}
|
||||
|
||||
// UpdatePurgedBy sets the "purged_by" field to the value that was provided on create.
|
||||
func (u *AttachmentUpsertBulk) UpdatePurgedBy() *AttachmentUpsertBulk {
|
||||
return u.Update(func(s *AttachmentUpsert) {
|
||||
s.UpdatePurgedBy()
|
||||
})
|
||||
}
|
||||
|
||||
// ClearPurgedBy clears the value of the "purged_by" field.
|
||||
func (u *AttachmentUpsertBulk) ClearPurgedBy() *AttachmentUpsertBulk {
|
||||
return u.Update(func(s *AttachmentUpsert) {
|
||||
s.ClearPurgedBy()
|
||||
})
|
||||
}
|
||||
|
||||
// SetCreatedAt sets the "created_at" field.
|
||||
func (u *AttachmentUpsertBulk) SetCreatedAt(v int64) *AttachmentUpsertBulk {
|
||||
return u.Update(func(s *AttachmentUpsert) {
|
||||
|
||||
Reference in New Issue
Block a user