2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-06 20:03:13 +08:00

refactor: 重命名备份存储

This commit is contained in:
2026-01-22 04:14:29 +08:00
parent 9cdc161f14
commit 0aebdd08e1
27 changed files with 279 additions and 277 deletions

View File

@@ -0,0 +1,15 @@
import { http } from '@/utils'
export default {
// 获取备份账号列表
list: (page: number, limit: number): any =>
http.Get('/backup_storage', { params: { page, limit } }),
// 获取备份账号
get: (id: number): any => http.Get(`/backup_storage/${id}`),
// 创建备份账号
create: (data: any): any => http.Post('/backup_storage', data),
// 更新备份账号
update: (id: number, data: any): any => http.Put(`/backup_storage/${id}`, data),
// 删除备份账号
delete: (id: number): any => http.Delete(`/backup_storage/${id}`)
}

View File

@@ -5,8 +5,8 @@ export default {
list: (type: string, page: number, limit: number): any =>
http.Get(`/backup/${type}`, { params: { page, limit } }),
// 创建备份
create: (type: string, target: string, account_id: number): any =>
http.Post(`/backup/${type}`, { target, account_id }),
create: (type: string, target: string, storage: number): any =>
http.Post(`/backup/${type}`, { target, storage }),
// 上传备份
upload: (type: string, formData: FormData): any => http.Post(`/backup/${type}/upload`, formData),
// 删除备份

View File

@@ -1,15 +0,0 @@
import { http } from '@/utils'
export default {
// 获取备份账号列表
list: (page: number, limit: number): any =>
http.Get('/backup_account', { params: { page, limit } }),
// 获取备份账号
get: (id: number): any => http.Get(`/backup_account/${id}`),
// 创建备份账号
create: (data: any): any => http.Post('/backup_account', data),
// 更新备份账号
update: (id: number, data: any): any => http.Put(`/backup_account/${id}`, data),
// 删除备份账号
delete: (id: number): any => http.Delete(`/backup_account/${id}`)
}