feat: 大屏新增虚拟工位滚动栏与多订单轮播,附件表增加删除原因及彻底清除留痕字段
This commit is contained in:
@@ -41,6 +41,12 @@ const (
|
||||
FieldDeletedAt = "deleted_at"
|
||||
// FieldDeletedBy holds the string denoting the deleted_by field in the database.
|
||||
FieldDeletedBy = "deleted_by"
|
||||
// FieldDeletedReason holds the string denoting the deleted_reason field in the database.
|
||||
FieldDeletedReason = "deleted_reason"
|
||||
// FieldPurgedAt holds the string denoting the purged_at field in the database.
|
||||
FieldPurgedAt = "purged_at"
|
||||
// FieldPurgedBy holds the string denoting the purged_by field in the database.
|
||||
FieldPurgedBy = "purged_by"
|
||||
// FieldCreatedAt holds the string denoting the created_at field in the database.
|
||||
FieldCreatedAt = "created_at"
|
||||
// Table holds the table name of the attachment in the database.
|
||||
@@ -65,6 +71,9 @@ var Columns = []string{
|
||||
FieldDeleted,
|
||||
FieldDeletedAt,
|
||||
FieldDeletedBy,
|
||||
FieldDeletedReason,
|
||||
FieldPurgedAt,
|
||||
FieldPurgedBy,
|
||||
FieldCreatedAt,
|
||||
}
|
||||
|
||||
@@ -172,6 +181,21 @@ func ByDeletedBy(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldDeletedBy, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByDeletedReason orders the results by the deleted_reason field.
|
||||
func ByDeletedReason(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldDeletedReason, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByPurgedAt orders the results by the purged_at field.
|
||||
func ByPurgedAt(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldPurgedAt, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByPurgedBy orders the results by the purged_by field.
|
||||
func ByPurgedBy(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldPurgedBy, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByCreatedAt orders the results by the created_at field.
|
||||
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldCreatedAt, opts...).ToFunc()
|
||||
|
||||
@@ -128,6 +128,21 @@ func DeletedBy(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldEQ(FieldDeletedBy, v))
|
||||
}
|
||||
|
||||
// DeletedReason applies equality check predicate on the "deleted_reason" field. It's identical to DeletedReasonEQ.
|
||||
func DeletedReason(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldEQ(FieldDeletedReason, v))
|
||||
}
|
||||
|
||||
// PurgedAt applies equality check predicate on the "purged_at" field. It's identical to PurgedAtEQ.
|
||||
func PurgedAt(v int64) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldEQ(FieldPurgedAt, v))
|
||||
}
|
||||
|
||||
// PurgedBy applies equality check predicate on the "purged_by" field. It's identical to PurgedByEQ.
|
||||
func PurgedBy(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldEQ(FieldPurgedBy, v))
|
||||
}
|
||||
|
||||
// CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
|
||||
func CreatedAt(v int64) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldEQ(FieldCreatedAt, v))
|
||||
@@ -1003,6 +1018,206 @@ func DeletedByContainsFold(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldContainsFold(FieldDeletedBy, v))
|
||||
}
|
||||
|
||||
// DeletedReasonEQ applies the EQ predicate on the "deleted_reason" field.
|
||||
func DeletedReasonEQ(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldEQ(FieldDeletedReason, v))
|
||||
}
|
||||
|
||||
// DeletedReasonNEQ applies the NEQ predicate on the "deleted_reason" field.
|
||||
func DeletedReasonNEQ(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldNEQ(FieldDeletedReason, v))
|
||||
}
|
||||
|
||||
// DeletedReasonIn applies the In predicate on the "deleted_reason" field.
|
||||
func DeletedReasonIn(vs ...string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldIn(FieldDeletedReason, vs...))
|
||||
}
|
||||
|
||||
// DeletedReasonNotIn applies the NotIn predicate on the "deleted_reason" field.
|
||||
func DeletedReasonNotIn(vs ...string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldNotIn(FieldDeletedReason, vs...))
|
||||
}
|
||||
|
||||
// DeletedReasonGT applies the GT predicate on the "deleted_reason" field.
|
||||
func DeletedReasonGT(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldGT(FieldDeletedReason, v))
|
||||
}
|
||||
|
||||
// DeletedReasonGTE applies the GTE predicate on the "deleted_reason" field.
|
||||
func DeletedReasonGTE(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldGTE(FieldDeletedReason, v))
|
||||
}
|
||||
|
||||
// DeletedReasonLT applies the LT predicate on the "deleted_reason" field.
|
||||
func DeletedReasonLT(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldLT(FieldDeletedReason, v))
|
||||
}
|
||||
|
||||
// DeletedReasonLTE applies the LTE predicate on the "deleted_reason" field.
|
||||
func DeletedReasonLTE(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldLTE(FieldDeletedReason, v))
|
||||
}
|
||||
|
||||
// DeletedReasonContains applies the Contains predicate on the "deleted_reason" field.
|
||||
func DeletedReasonContains(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldContains(FieldDeletedReason, v))
|
||||
}
|
||||
|
||||
// DeletedReasonHasPrefix applies the HasPrefix predicate on the "deleted_reason" field.
|
||||
func DeletedReasonHasPrefix(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldHasPrefix(FieldDeletedReason, v))
|
||||
}
|
||||
|
||||
// DeletedReasonHasSuffix applies the HasSuffix predicate on the "deleted_reason" field.
|
||||
func DeletedReasonHasSuffix(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldHasSuffix(FieldDeletedReason, v))
|
||||
}
|
||||
|
||||
// DeletedReasonIsNil applies the IsNil predicate on the "deleted_reason" field.
|
||||
func DeletedReasonIsNil() predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldIsNull(FieldDeletedReason))
|
||||
}
|
||||
|
||||
// DeletedReasonNotNil applies the NotNil predicate on the "deleted_reason" field.
|
||||
func DeletedReasonNotNil() predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldNotNull(FieldDeletedReason))
|
||||
}
|
||||
|
||||
// DeletedReasonEqualFold applies the EqualFold predicate on the "deleted_reason" field.
|
||||
func DeletedReasonEqualFold(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldEqualFold(FieldDeletedReason, v))
|
||||
}
|
||||
|
||||
// DeletedReasonContainsFold applies the ContainsFold predicate on the "deleted_reason" field.
|
||||
func DeletedReasonContainsFold(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldContainsFold(FieldDeletedReason, v))
|
||||
}
|
||||
|
||||
// PurgedAtEQ applies the EQ predicate on the "purged_at" field.
|
||||
func PurgedAtEQ(v int64) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldEQ(FieldPurgedAt, v))
|
||||
}
|
||||
|
||||
// PurgedAtNEQ applies the NEQ predicate on the "purged_at" field.
|
||||
func PurgedAtNEQ(v int64) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldNEQ(FieldPurgedAt, v))
|
||||
}
|
||||
|
||||
// PurgedAtIn applies the In predicate on the "purged_at" field.
|
||||
func PurgedAtIn(vs ...int64) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldIn(FieldPurgedAt, vs...))
|
||||
}
|
||||
|
||||
// PurgedAtNotIn applies the NotIn predicate on the "purged_at" field.
|
||||
func PurgedAtNotIn(vs ...int64) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldNotIn(FieldPurgedAt, vs...))
|
||||
}
|
||||
|
||||
// PurgedAtGT applies the GT predicate on the "purged_at" field.
|
||||
func PurgedAtGT(v int64) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldGT(FieldPurgedAt, v))
|
||||
}
|
||||
|
||||
// PurgedAtGTE applies the GTE predicate on the "purged_at" field.
|
||||
func PurgedAtGTE(v int64) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldGTE(FieldPurgedAt, v))
|
||||
}
|
||||
|
||||
// PurgedAtLT applies the LT predicate on the "purged_at" field.
|
||||
func PurgedAtLT(v int64) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldLT(FieldPurgedAt, v))
|
||||
}
|
||||
|
||||
// PurgedAtLTE applies the LTE predicate on the "purged_at" field.
|
||||
func PurgedAtLTE(v int64) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldLTE(FieldPurgedAt, v))
|
||||
}
|
||||
|
||||
// PurgedAtIsNil applies the IsNil predicate on the "purged_at" field.
|
||||
func PurgedAtIsNil() predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldIsNull(FieldPurgedAt))
|
||||
}
|
||||
|
||||
// PurgedAtNotNil applies the NotNil predicate on the "purged_at" field.
|
||||
func PurgedAtNotNil() predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldNotNull(FieldPurgedAt))
|
||||
}
|
||||
|
||||
// PurgedByEQ applies the EQ predicate on the "purged_by" field.
|
||||
func PurgedByEQ(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldEQ(FieldPurgedBy, v))
|
||||
}
|
||||
|
||||
// PurgedByNEQ applies the NEQ predicate on the "purged_by" field.
|
||||
func PurgedByNEQ(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldNEQ(FieldPurgedBy, v))
|
||||
}
|
||||
|
||||
// PurgedByIn applies the In predicate on the "purged_by" field.
|
||||
func PurgedByIn(vs ...string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldIn(FieldPurgedBy, vs...))
|
||||
}
|
||||
|
||||
// PurgedByNotIn applies the NotIn predicate on the "purged_by" field.
|
||||
func PurgedByNotIn(vs ...string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldNotIn(FieldPurgedBy, vs...))
|
||||
}
|
||||
|
||||
// PurgedByGT applies the GT predicate on the "purged_by" field.
|
||||
func PurgedByGT(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldGT(FieldPurgedBy, v))
|
||||
}
|
||||
|
||||
// PurgedByGTE applies the GTE predicate on the "purged_by" field.
|
||||
func PurgedByGTE(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldGTE(FieldPurgedBy, v))
|
||||
}
|
||||
|
||||
// PurgedByLT applies the LT predicate on the "purged_by" field.
|
||||
func PurgedByLT(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldLT(FieldPurgedBy, v))
|
||||
}
|
||||
|
||||
// PurgedByLTE applies the LTE predicate on the "purged_by" field.
|
||||
func PurgedByLTE(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldLTE(FieldPurgedBy, v))
|
||||
}
|
||||
|
||||
// PurgedByContains applies the Contains predicate on the "purged_by" field.
|
||||
func PurgedByContains(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldContains(FieldPurgedBy, v))
|
||||
}
|
||||
|
||||
// PurgedByHasPrefix applies the HasPrefix predicate on the "purged_by" field.
|
||||
func PurgedByHasPrefix(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldHasPrefix(FieldPurgedBy, v))
|
||||
}
|
||||
|
||||
// PurgedByHasSuffix applies the HasSuffix predicate on the "purged_by" field.
|
||||
func PurgedByHasSuffix(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldHasSuffix(FieldPurgedBy, v))
|
||||
}
|
||||
|
||||
// PurgedByIsNil applies the IsNil predicate on the "purged_by" field.
|
||||
func PurgedByIsNil() predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldIsNull(FieldPurgedBy))
|
||||
}
|
||||
|
||||
// PurgedByNotNil applies the NotNil predicate on the "purged_by" field.
|
||||
func PurgedByNotNil() predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldNotNull(FieldPurgedBy))
|
||||
}
|
||||
|
||||
// PurgedByEqualFold applies the EqualFold predicate on the "purged_by" field.
|
||||
func PurgedByEqualFold(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldEqualFold(FieldPurgedBy, v))
|
||||
}
|
||||
|
||||
// PurgedByContainsFold applies the ContainsFold predicate on the "purged_by" field.
|
||||
func PurgedByContainsFold(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldContainsFold(FieldPurgedBy, v))
|
||||
}
|
||||
|
||||
// CreatedAtEQ applies the EQ predicate on the "created_at" field.
|
||||
func CreatedAtEQ(v int64) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldEQ(FieldCreatedAt, v))
|
||||
|
||||
Reference in New Issue
Block a user