mirror of
https://github.com/acepanel/panel.git
synced 2026-02-07 16:47:14 +08:00
feat: 备份账号设置
This commit is contained in:
15
web/src/api/panel/backupAccount/index.ts
Normal file
15
web/src/api/panel/backupAccount/index.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
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}`)
|
||||
}
|
||||
Reference in New Issue
Block a user