feat: 新增 api 接口
This commit is contained in:
@@ -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}`)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user