返回 Social Auto Upload
account.js
根目录 / sau_frontend / src / api / account.js
1 import { http } from '@/utils/request'
2
3 // 账号管理相关API
4 export const accountApi = {
5 // 获取有效账号列表(带验证)
6 getValidAccounts() {
7 return http.get('/getValidAccounts')
8 },
9
10 // 获取账号列表(不带验证,快速加载)
11 getAccounts() {
12 return http.get('/getAccounts')
13 },
14
15 // 添加账号
16 addAccount(data) {
17 return http.post('/account', data)
18 },
19
20 // 更新账号
21 updateAccount(data) {
22 return http.post('/updateUserinfo', data)
23 },
24
25 // 删除账号
26 deleteAccount(id) {
27 return http.get(`/deleteAccount?id=${id}`)
28 }
29 }
29 lines JAVASCRIPT