feat: 新增 api 接口

This commit is contained in:
Edan's Win11
2025-06-03 21:27:10 +08:00
parent 6c425eec54
commit 525d1b03de
4 changed files with 112 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
import { http } from '@/utils/request'
// 账号管理相关API
export const accountApi = {
// 获取有效账号列表
getValidAccounts() {
return http.get('/getValidAccounts')
},
// 添加账号
addAccount(data) {
return http.post('/account', data)
},
// 更新账号
updateAccount(id, data) {
return http.put(`/account/${id}`, data)
},
// 删除账号
deleteAccount(id) {
return http.get(`/deleteAccount?id=${id}`)
}
}