|
|
@ -54,16 +54,16 @@ export const loadBaseDir = () => { |
|
|
|
|
|
|
|
|
|
|
|
// backup
|
|
|
|
// backup
|
|
|
|
export const handleBackup = (params: Backup.Backup) => { |
|
|
|
export const handleBackup = (params: Backup.Backup) => { |
|
|
|
return http.post(`/settings/backup/backup`, params, 400000); |
|
|
|
return http.post(`/settings/backup/backup`, params, 600000); |
|
|
|
}; |
|
|
|
}; |
|
|
|
export const handleRecover = (params: Backup.Recover) => { |
|
|
|
export const handleRecover = (params: Backup.Recover) => { |
|
|
|
return http.post(`/settings/backup/recover`, params, 400000); |
|
|
|
return http.post(`/settings/backup/recover`, params, 600000); |
|
|
|
}; |
|
|
|
}; |
|
|
|
export const handleRecoverByUpload = (params: Backup.Recover) => { |
|
|
|
export const handleRecoverByUpload = (params: Backup.Recover) => { |
|
|
|
return http.post(`/settings/backup/recover/byupload`, params, 400000); |
|
|
|
return http.post(`/settings/backup/recover/byupload`, params, 600000); |
|
|
|
}; |
|
|
|
}; |
|
|
|
export const downloadBackupRecord = (params: Backup.RecordDownload) => { |
|
|
|
export const downloadBackupRecord = (params: Backup.RecordDownload) => { |
|
|
|
return http.post<string>(`/settings/backup/record/download`, params); |
|
|
|
return http.post<string>(`/settings/backup/record/download`, params, 600000); |
|
|
|
}; |
|
|
|
}; |
|
|
|
export const deleteBackupRecord = (params: { ids: number[] }) => { |
|
|
|
export const deleteBackupRecord = (params: { ids: number[] }) => { |
|
|
|
return http.post(`/settings/backup/record/del`, params); |
|
|
|
return http.post(`/settings/backup/record/del`, params); |
|
|
|