feat: 完善后台导入日志权限与备份恢复

This commit is contained in:
Nixevol
2026-07-04 09:06:35 +08:00
parent 5ae3b12fff
commit d484da3862
61 changed files with 2743 additions and 436 deletions
+4 -1
View File
@@ -3,8 +3,11 @@
export const QUEUE_NAMES = {
GEN_CODE: 'gen-code',
IMPORT_OUTBOUND: 'import-outbound',
IMPORT_OUTBOUND_PREVIEW: 'import-outbound-preview',
WATERMARK: 'watermark',
ONCHAIN: 'onchain',
BACKUP: 'backup',
RESTORE: 'restore',
} as const;
// 公开随机短码长度(Base62)
@@ -32,7 +35,7 @@ export const OUTBOUND_IMPORT_COLUMNS: ImportColumn[] = [
{ key: 'shortCode', header: '短码', required: true, note: '必填,生码导出文件中的随机短码(定位到具体一套)', example: 'a8K3pQ9x2M' },
{ key: 'batchNo', header: '批次编号', required: false, note: '选填,仅作核对,与该码实际批次不符则该行失败', example: 'B20240601' },
{ key: 'outTime', header: '出库时间', required: false, note: '选填,格式 YYYY-MM-DD HH:mm', example: '2024-06-01 10:00' },
{ key: 'outImage', header: '出库实况图', required: false, note: '选填,已上传图片的存储 key 或 URL', example: 'uploads/2024/out-001.jpg' },
{ key: 'outImages', header: '出库实况图路径', required: false, note: '选填,ZIP 内 images 目录下的图片路径,多张用 ; 分隔,如 images/out-001.jpg;images/out-002.png', example: 'images/out-001.jpg;images/out-002.png' },
{ key: 'txHash', header: '上链哈希值', required: false, note: '选填,链上交易/存证哈希,填写则记录上链结果', example: '0xabc123...' },
{ key: 'onchainAt', header: '上链时间', required: false, note: '选填,格式 YYYY-MM-DD HH:mm', example: '2024-06-02 09:30' },
{ key: 'blockHeight', header: '区块高度', required: false, note: '选填,整数', example: '8500001' },