1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-01-20 16:59:17 +08:00

85 lines
1.9 KiB
Go
Raw Normal View History

import { ReqPage } from '.';
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;
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;
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;
targetDirID: number;
retainCopies: number;
}
export interface UpdateStatus {
id: number;
status: string;
}
export interface Download {
2022-09-28 00:08:21 +08:00
recordID: number;
backupAccountID: number;
}
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;
}
}