@aliretail/react-materials-components
Version:
52 lines (51 loc) • 981 B
TypeScript
export interface Query {
[key: string]: any;
}
export interface HistoryRecord {
/**
* 创建人
*/
creator: string;
/**
* 已完成多少 0 ~ 100
*/
finished: number;
/**
* 导出操作的时间戳
*/
createdTime: number | string;
/**
* 导出完成的时间戳
*/
finishedTime: number | string;
/**
* 导出的查询条件
*/
exportQuery: Query;
/**
* 导出状态 process|finish|fail
*/
status: 'process' | 'finish' | 'fail';
downloadUrl: string;
}
export interface ExportResponse {
success: boolean;
message: string;
data?: {
jobid: string;
total: number;
list: HistoryRecord[];
};
}
export declare type QueryItem = {
label: string;
value: string;
};
export interface ExportStateResponse {
success: boolean;
message: string;
finished: number;
}
export interface ExportError {
[key: string]: any;
}