Files
cloud-mail/mail-vue/src/request/account.js
2025-12-07 22:08:00 +08:00

23 lines
584 B
JavaScript

import http from '@/axios/index.js'
export function accountList(accountId, size) {
return http.get('/account/list', {params: {accountId, size}});
}
export function accountAdd(email,token) {
return http.post('/account/add', {email,token})
}
export function accountSetName(accountId,name) {
return http.put('/account/setName', {name,accountId})
}
export function accountDelete(accountId) {
return http.delete('/account/delete', {params: {accountId}})
}
export function accountSetAllReceive(accountId) {
return http.put('/account/setAllReceive', {accountId})
}