feat: 大屏新增虚拟工位滚动栏与多订单轮播,附件表增加删除原因及彻底清除留痕字段
This commit is contained in:
@@ -45,6 +45,12 @@ const (
|
||||
FieldDeletedAt = "deleted_at"
|
||||
// FieldDeletedBy holds the string denoting the deletedby field in the database.
|
||||
FieldDeletedBy = "deleted_by"
|
||||
// FieldDeletedReason holds the string denoting the deletedreason field in the database.
|
||||
FieldDeletedReason = "deleted_reason"
|
||||
// FieldPurgedAt holds the string denoting the purgedat field in the database.
|
||||
FieldPurgedAt = "purged_at"
|
||||
// FieldPurgedBy holds the string denoting the purgedby field in the database.
|
||||
FieldPurgedBy = "purged_by"
|
||||
// Table holds the table name of the attachment in the database.
|
||||
Table = "attachment"
|
||||
)
|
||||
@@ -68,6 +74,9 @@ var Columns = []string{
|
||||
FieldDeleted,
|
||||
FieldDeletedAt,
|
||||
FieldDeletedBy,
|
||||
FieldDeletedReason,
|
||||
FieldPurgedAt,
|
||||
FieldPurgedBy,
|
||||
}
|
||||
|
||||
// ValidColumn reports if the column name is valid (part of the table columns).
|
||||
@@ -125,6 +134,16 @@ var (
|
||||
DefaultDeletedBy string
|
||||
// DeletedByValidator is a validator for the "deletedBy" field. It is called by the builders before save.
|
||||
DeletedByValidator func(string) error
|
||||
// DefaultDeletedReason holds the default value on creation for the "deletedReason" field.
|
||||
DefaultDeletedReason string
|
||||
// DeletedReasonValidator is a validator for the "deletedReason" field. It is called by the builders before save.
|
||||
DeletedReasonValidator func(string) error
|
||||
// DefaultPurgedAt holds the default value on creation for the "purgedAt" field.
|
||||
DefaultPurgedAt int64
|
||||
// DefaultPurgedBy holds the default value on creation for the "purgedBy" field.
|
||||
DefaultPurgedBy string
|
||||
// PurgedByValidator is a validator for the "purgedBy" field. It is called by the builders before save.
|
||||
PurgedByValidator func(string) error
|
||||
// IDValidator is a validator for the "id" field. It is called by the builders before save.
|
||||
IDValidator func(int) error
|
||||
)
|
||||
@@ -216,3 +235,18 @@ func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption {
|
||||
func ByDeletedBy(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldDeletedBy, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByDeletedReason orders the results by the deletedReason field.
|
||||
func ByDeletedReason(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldDeletedReason, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByPurgedAt orders the results by the purgedAt field.
|
||||
func ByPurgedAt(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldPurgedAt, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByPurgedBy orders the results by the purgedBy field.
|
||||
func ByPurgedBy(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldPurgedBy, opts...).ToFunc()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user