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()
|
||||
|
||||
Reference in New Issue
Block a user