refactor(types): 重构类型系统,统一共享类型定义
feat(types): 新增共享类型中心,包含用户、产品、订单等核心领域类型 fix(types): 修复类型定义错误,统一各模块类型引用 style(types): 优化类型文件格式和注释 docs(types): 更新类型文档和变更日志 test(types): 添加类型测试用例 build(types): 配置类型共享路径 chore(types): 清理重复类型定义文件
This commit is contained in:
@@ -4,16 +4,28 @@
|
||||
|
||||
export interface Task {
|
||||
id: string;
|
||||
type: 'sync' | 'report' | 'import' | 'export' | 'automation';
|
||||
taskId?: string;
|
||||
name: string;
|
||||
status: 'pending' | 'running' | 'completed' | 'failed';
|
||||
type: 'PRODUCT_SYNC' | 'ORDER_PROCESS' | 'DATA_ANALYSIS' | 'AD_OPTIMIZATION' | 'INVENTORY_CHECK' | 'CUSTOM' | 'sync' | 'report' | 'import' | 'export' | 'automation';
|
||||
status: 'PENDING' | 'RUNNING' | 'PAUSED' | 'COMPLETED' | 'FAILED' | 'CANCELLED' | 'pending' | 'running' | 'completed' | 'failed';
|
||||
priority?: 'LOW' | 'MEDIUM' | 'HIGH' | 'URGENT';
|
||||
progress: number;
|
||||
total: number;
|
||||
result?: string;
|
||||
total?: number;
|
||||
result?: string | any;
|
||||
error?: string;
|
||||
errorMessage?: string;
|
||||
startedAt?: string;
|
||||
completedAt?: string;
|
||||
createdAt: string;
|
||||
estimatedDuration?: number;
|
||||
actualDuration?: number;
|
||||
retryCount?: number;
|
||||
maxRetries?: number;
|
||||
shopId?: string;
|
||||
shopName?: string;
|
||||
createdBy?: string;
|
||||
scheduleType?: 'MANUAL' | 'SCHEDULED' | 'TRIGGERED';
|
||||
scheduleTime?: string;
|
||||
}
|
||||
|
||||
export interface ITaskCenterDataSource {
|
||||
|
||||
Reference in New Issue
Block a user