保存
This commit is contained in:
14
mail-vue/src/request/account.js
Normal file
14
mail-vue/src/request/account.js
Normal file
@@ -0,0 +1,14 @@
|
||||
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 accountDelete(accountId) {
|
||||
return http.delete('/account/delete', {params: {accountId}})
|
||||
}
|
||||
|
||||
17
mail-vue/src/request/email.js
Normal file
17
mail-vue/src/request/email.js
Normal file
@@ -0,0 +1,17 @@
|
||||
import http from '@/axios/index.js';
|
||||
|
||||
export function emailList(accountId, emailId, size) {
|
||||
return http.get('/email/list', {params: {accountId, emailId, size}})
|
||||
}
|
||||
|
||||
export function emailDelete(emailIds) {
|
||||
return http.delete('/email/delete?emailIds=' + emailIds)
|
||||
}
|
||||
|
||||
export function attList(emailId) {
|
||||
return http.get('/email/attList', {params: {emailId}})
|
||||
}
|
||||
|
||||
export function emailLatest(emailId,accountId) {
|
||||
return http.get('/email/latest',{params: {emailId,accountId}})
|
||||
}
|
||||
13
mail-vue/src/request/login.js
Normal file
13
mail-vue/src/request/login.js
Normal file
@@ -0,0 +1,13 @@
|
||||
import http from '@/axios/index.js';
|
||||
|
||||
export function login(email, password) {
|
||||
return http.post('/login', {email: email, password: password})
|
||||
}
|
||||
|
||||
export function logout() {
|
||||
return http.delete('/logout')
|
||||
}
|
||||
|
||||
export function register(form) {
|
||||
return http.post('/register', form)
|
||||
}
|
||||
13
mail-vue/src/request/send.js
Normal file
13
mail-vue/src/request/send.js
Normal file
@@ -0,0 +1,13 @@
|
||||
import http from "@/axios/index.js";
|
||||
|
||||
export function sendEmail(form) {
|
||||
return http.post('/send/sendEmail', form)
|
||||
}
|
||||
|
||||
export function sendList(accountId, sendId, size) {
|
||||
return http.get('/send/list',{ params: {accountId, sendId, size}})
|
||||
}
|
||||
|
||||
export function sendDelete(sendIds) {
|
||||
return http.delete('/send/delete?sendIds=' + sendIds);
|
||||
}
|
||||
9
mail-vue/src/request/setting.js
Normal file
9
mail-vue/src/request/setting.js
Normal file
@@ -0,0 +1,9 @@
|
||||
import http from '@/axios/index.js';
|
||||
|
||||
export function settingSet(setting) {
|
||||
return http.put('/setting/set',setting)
|
||||
}
|
||||
|
||||
export function settingQuery() {
|
||||
return http.get('/setting/query')
|
||||
}
|
||||
13
mail-vue/src/request/star.js
Normal file
13
mail-vue/src/request/star.js
Normal file
@@ -0,0 +1,13 @@
|
||||
import http from "@/axios/index.js";
|
||||
|
||||
export function starAdd(emailId) {
|
||||
return http.post('/star/add', {emailId})
|
||||
}
|
||||
|
||||
export function starCancel(emailId) {
|
||||
return http.delete('/star/cancel', {params: {emailId}})
|
||||
}
|
||||
|
||||
export function starList(emailId,size) {
|
||||
return http.get('/star/list', {params: {emailId,size}})
|
||||
}
|
||||
13
mail-vue/src/request/user.js
Normal file
13
mail-vue/src/request/user.js
Normal file
@@ -0,0 +1,13 @@
|
||||
import http from '@/axios/index.js';
|
||||
|
||||
export function loginUserInfo() {
|
||||
return http.get('/user/loginUserInfo')
|
||||
}
|
||||
|
||||
export function resetPassword(password) {
|
||||
return http.put('/user/resetPassword', {password})
|
||||
}
|
||||
|
||||
export function userDelete() {
|
||||
return http.delete('/user/delete')
|
||||
}
|
||||
Reference in New Issue
Block a user