feat: 完善后台导入日志权限与备份恢复
This commit is contained in:
@@ -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' },
|
||||
|
||||
@@ -72,8 +72,11 @@ export enum ProofStatus {
|
||||
export enum JobType {
|
||||
GEN_CODE = 'GEN_CODE',
|
||||
IMPORT_OUTBOUND = 'IMPORT_OUTBOUND',
|
||||
IMPORT_OUTBOUND_PREVIEW = 'IMPORT_OUTBOUND_PREVIEW',
|
||||
WATERMARK = 'WATERMARK',
|
||||
ONCHAIN = 'ONCHAIN',
|
||||
BACKUP = 'BACKUP',
|
||||
RESTORE = 'RESTORE',
|
||||
}
|
||||
|
||||
export enum JobStatus {
|
||||
@@ -95,3 +98,26 @@ export enum BatchStatus {
|
||||
DONE = 'DONE',
|
||||
FAILED = 'FAILED',
|
||||
}
|
||||
|
||||
export enum OutboundImportSessionStatus {
|
||||
PARSING = 'PARSING',
|
||||
READY = 'READY',
|
||||
IMPORTING = 'IMPORTING',
|
||||
IMPORTED = 'IMPORTED',
|
||||
FAILED = 'FAILED',
|
||||
EXPIRED = 'EXPIRED',
|
||||
}
|
||||
|
||||
export enum OutboundImportRowStatus {
|
||||
VALID = 'VALID',
|
||||
INVALID = 'INVALID',
|
||||
IMPORTED = 'IMPORTED',
|
||||
FAILED = 'FAILED',
|
||||
}
|
||||
|
||||
export enum BackupStatus {
|
||||
PENDING = 'PENDING',
|
||||
PROCESSING = 'PROCESSING',
|
||||
SUCCESS = 'SUCCESS',
|
||||
FAILED = 'FAILED',
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user