feat: 新增预警定时扫描器,移除附件归档字段并为角色表补充更新时间

This commit is contained in:
SunYF
2026-10-31 15:41:27 +08:00
parent 11dbdaae75
commit 0c03d32682
107 changed files with 10790 additions and 1844 deletions
-18
View File
@@ -31,10 +31,6 @@ const (
FieldMimeType = "mime_type"
// FieldUploadedBy holds the string denoting the uploaded_by field in the database.
FieldUploadedBy = "uploaded_by"
// FieldArchived holds the string denoting the archived field in the database.
FieldArchived = "archived"
// FieldArchivedAt holds the string denoting the archived_at field in the database.
FieldArchivedAt = "archived_at"
// FieldDeleted holds the string denoting the deleted field in the database.
FieldDeleted = "deleted"
// FieldDeletedAt holds the string denoting the deleted_at field in the database.
@@ -66,8 +62,6 @@ var Columns = []string{
FieldFileSize,
FieldMimeType,
FieldUploadedBy,
FieldArchived,
FieldArchivedAt,
FieldDeleted,
FieldDeletedAt,
FieldDeletedBy,
@@ -90,8 +84,6 @@ func ValidColumn(column string) bool {
var (
// DefaultFileSize holds the default value on creation for the "file_size" field.
DefaultFileSize int64
// DefaultArchived holds the default value on creation for the "archived" field.
DefaultArchived bool
// DefaultDeleted holds the default value on creation for the "deleted" field.
DefaultDeleted bool
// DefaultCreatedAt holds the default value on creation for the "created_at" field.
@@ -156,16 +148,6 @@ func ByUploadedBy(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldUploadedBy, opts...).ToFunc()
}
// ByArchived orders the results by the archived field.
func ByArchived(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldArchived, opts...).ToFunc()
}
// ByArchivedAt orders the results by the archived_at field.
func ByArchivedAt(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldArchivedAt, opts...).ToFunc()
}
// ByDeleted orders the results by the deleted field.
func ByDeleted(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldDeleted, opts...).ToFunc()