feat: 大屏新增虚拟工位滚动栏与多订单轮播,附件表增加删除原因及彻底清除留痕字段

This commit is contained in:
SunYF
2026-10-29 18:16:53 +08:00
parent 4d3c4e2c3a
commit 11dbdaae75
75 changed files with 6801 additions and 965 deletions
+6 -1
View File
@@ -171,6 +171,9 @@ var (
{Name: "deleted", Type: field.TypeBool, Comment: "逻辑删除", Default: false},
{Name: "deleted_at", Type: field.TypeInt64, Comment: "删除时间(unix秒)", Default: 0},
{Name: "deleted_by", Type: field.TypeString, Size: 64, Comment: "删除人", Default: ""},
{Name: "deleted_reason", Type: field.TypeString, Size: 255, Comment: "删除说明(删除弹窗填写,警示留痕)", Default: ""},
{Name: "purged_at", Type: field.TypeInt64, Comment: "彻底清除时间(unix秒,仅删文件留索引)", Default: 0},
{Name: "purged_by", Type: field.TypeString, Size: 64, Comment: "彻底清除操作人", Default: ""},
}
// AttachmentTable holds the schema information for the "attachment" table.
AttachmentTable = &schema.Table{
@@ -210,10 +213,12 @@ var (
{Name: "backup_path", Type: field.TypeString, Comment: "备份包(zip)在目标盘的完整路径"},
{Name: "total_size", Type: field.TypeInt64, Comment: "备份包总字节数", Default: 0},
{Name: "items_json", Type: field.TypeString, Comment: "各数据项及大小(JSON数组:[{name,rows,bytes}])"},
{Name: "status", Type: field.TypeString, Size: 16, Comment: "success/failed/partial", Default: "success"},
{Name: "status", Type: field.TypeString, Size: 16, Comment: "success/failed/partial/cleanup/cleanup_forced", Default: "success"},
{Name: "operator", Type: field.TypeString, Size: 64, Comment: "操作人", Default: ""},
{Name: "checksum", Type: field.TypeString, Size: 64, Comment: "备份包校验和(sha256,基于 manifest)", Default: ""},
{Name: "scope", Type: field.TypeString, Size: 8, Comment: "写入方 mes/wms", Default: "mes"},
{Name: "ack_name", Type: field.TypeString, Size: 64, Comment: "强制清理时填写姓名(警示留痕,非强制清理为空)", Default: ""},
{Name: "ack_phone", Type: field.TypeString, Size: 32, Comment: "强制清理时填写手机号(警示留痕,非强制清理为空)", Default: ""},
}
// BackupRecordTable holds the schema information for the "backup_record" table.
BackupRecordTable = &schema.Table{