sau / sau_frontend /src /api /account.js
Deroino
feat(account-management): optimize account loading with async validation
2bf8af7
raw
history blame contribute delete
595 Bytes
import { http } from '@/utils/request'
// 账号管理相关API
export const accountApi = {
// 获取有效账号列表(带验证)
getValidAccounts() {
return http.get('/getValidAccounts')
},
// 获取账号列表(不带验证,快速加载)
getAccounts() {
return http.get('/getAccounts')
},
// 添加账号
addAccount(data) {
return http.post('/account', data)
},
// 更新账号
updateAccount(data) {
return http.post('/updateUserinfo', data)
},
// 删除账号
deleteAccount(id) {
return http.get(`/deleteAccount?id=${id}`)
}
}