2022-09-23 17:21:27 +08:00
|
|
|
import { ReqPage } from '.';
|
|
|
|
|
2022-09-20 19:12:48 +08:00
|
|
|
export namespace Cronjob {
|
|
|
|
export interface CronjobInfo {
|
|
|
|
id: number;
|
|
|
|
name: string;
|
|
|
|
type: string;
|
|
|
|
specType: string;
|
|
|
|
week: number;
|
|
|
|
day: number;
|
|
|
|
hour: number;
|
|
|
|
minute: number;
|
|
|
|
|
|
|
|
script: string;
|
|
|
|
website: string;
|
|
|
|
exclusionRules: string;
|
|
|
|
database: string;
|
|
|
|
url: string;
|
2022-09-22 14:19:49 +08:00
|
|
|
sourceDir: string;
|
2022-09-20 19:12:48 +08:00
|
|
|
targetDirID: number;
|
|
|
|
targetDir: string;
|
|
|
|
retainCopies: number;
|
|
|
|
status: string;
|
|
|
|
}
|
|
|
|
export interface CronjobCreate {
|
|
|
|
name: string;
|
|
|
|
type: string;
|
|
|
|
specType: string;
|
|
|
|
week: number;
|
|
|
|
day: number;
|
|
|
|
hour: number;
|
|
|
|
minute: number;
|
|
|
|
|
|
|
|
script: string;
|
|
|
|
website: string;
|
|
|
|
exclusionRules: string;
|
|
|
|
database: string;
|
|
|
|
url: string;
|
2022-09-22 14:19:49 +08:00
|
|
|
sourceDir: string;
|
2022-09-20 19:12:48 +08:00
|
|
|
targetDirID: number;
|
|
|
|
retainCopies: number;
|
|
|
|
}
|
|
|
|
export interface CronjobUpdate {
|
|
|
|
id: number;
|
|
|
|
specType: string;
|
|
|
|
week: number;
|
|
|
|
day: number;
|
|
|
|
hour: number;
|
|
|
|
minute: number;
|
|
|
|
|
|
|
|
script: string;
|
|
|
|
website: string;
|
|
|
|
exclusionRules: string;
|
|
|
|
database: string;
|
|
|
|
url: string;
|
2022-09-22 14:19:49 +08:00
|
|
|
sourceDir: string;
|
2022-09-20 19:12:48 +08:00
|
|
|
targetDirID: number;
|
|
|
|
retainCopies: number;
|
|
|
|
status: string;
|
|
|
|
}
|
2022-09-23 17:21:27 +08:00
|
|
|
export interface SearchRecord extends ReqPage {
|
|
|
|
cronjobID: number;
|
|
|
|
startTime: Date;
|
|
|
|
endTime: Date;
|
|
|
|
status: string;
|
|
|
|
}
|
|
|
|
export interface Record {
|
|
|
|
id: number;
|
|
|
|
startTime: Date;
|
|
|
|
endTime: Date;
|
|
|
|
records: string;
|
|
|
|
status: string;
|
|
|
|
message: string;
|
|
|
|
targetPath: string;
|
|
|
|
interval: number;
|
|
|
|
}
|
2022-09-20 19:12:48 +08:00
|
|
|
}
|