新增邮件发送和管理员功能
This commit is contained in:
@@ -1,17 +1,22 @@
|
||||
import http from '@/axios/index.js';
|
||||
|
||||
export function emailList(accountId, emailId, size) {
|
||||
return http.get('/email/list', {params: {accountId, emailId, size}})
|
||||
export function emailList(accountId, emailId, timeSort, size, type) {
|
||||
return http.get('/email/list', {params: {accountId, emailId, timeSort, size, type}})
|
||||
}
|
||||
|
||||
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}, noMsg: true })
|
||||
}
|
||||
|
||||
export function emailLatest(emailId,accountId) {
|
||||
return http.get('/email/latest',{params: {emailId,accountId}})
|
||||
export function emailSend(form,progress) {
|
||||
return http.post('/email/send', form,{
|
||||
onUploadProgress: (e) => {
|
||||
progress(e)
|
||||
},
|
||||
noMsg: true
|
||||
})
|
||||
}
|
||||
14
mail-vue/src/request/my.js
Normal file
14
mail-vue/src/request/my.js
Normal file
@@ -0,0 +1,14 @@
|
||||
import http from '@/axios/index.js';
|
||||
|
||||
export function loginUserInfo() {
|
||||
return http.get('/my/loginUserInfo')
|
||||
}
|
||||
|
||||
export function resetPassword(password) {
|
||||
return http.put('/my/resetPassword', {password})
|
||||
}
|
||||
|
||||
export function userDelete() {
|
||||
return http.delete('/my/delete')
|
||||
}
|
||||
|
||||
30
mail-vue/src/request/role.js
Normal file
30
mail-vue/src/request/role.js
Normal file
@@ -0,0 +1,30 @@
|
||||
import http from '@/axios/index.js';
|
||||
|
||||
export function roleAdd(params) {
|
||||
return http.post('/role/add',params)
|
||||
}
|
||||
|
||||
export function rolePermTree() {
|
||||
return http.get('/role/permTree')
|
||||
}
|
||||
|
||||
export function roleRoleList() {
|
||||
return http.get('/role/list')
|
||||
}
|
||||
|
||||
export function roleSet(params) {
|
||||
return http.put('/role/set',params)
|
||||
}
|
||||
|
||||
export function roleDelete(roleId) {
|
||||
return http.delete('/role/delete',{params:{roleId}})
|
||||
}
|
||||
|
||||
export function roleSetDef(roleId) {
|
||||
return http.put('/role/setDefault',{roleId})
|
||||
}
|
||||
|
||||
|
||||
export function roleSelectUse() {
|
||||
return http.get('/role/selectUse')
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
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);
|
||||
}
|
||||
@@ -6,4 +6,12 @@ export function settingSet(setting) {
|
||||
|
||||
export function settingQuery() {
|
||||
return http.get('/setting/query')
|
||||
}
|
||||
|
||||
export function setBackground(background) {
|
||||
return http.put('/setting/setBackground',{background})
|
||||
}
|
||||
|
||||
export function physicsDeleteAll() {
|
||||
return http.delete('/setting/physicsDeleteAll')
|
||||
}
|
||||
9
mail-vue/src/request/sys-email.js
Normal file
9
mail-vue/src/request/sys-email.js
Normal file
@@ -0,0 +1,9 @@
|
||||
import http from '@/axios/index.js';
|
||||
|
||||
export function sysEmailAll(params) {
|
||||
return http.get('/sys-email/list', {params: {...params}})
|
||||
}
|
||||
|
||||
export function sysEmailDelete(emailIds) {
|
||||
return http.delete('/sys-email/delete?emailIds=' + emailIds)
|
||||
}
|
||||
@@ -1,13 +1,35 @@
|
||||
import http from '@/axios/index.js';
|
||||
import http from '@/axios/index.js'
|
||||
|
||||
export function loginUserInfo() {
|
||||
return http.get('/user/loginUserInfo')
|
||||
|
||||
export function userList(params) {
|
||||
return http.get('/user/list', {params: {...params}})
|
||||
}
|
||||
|
||||
export function resetPassword(password) {
|
||||
return http.put('/user/resetPassword', {password})
|
||||
export function userSetPwd(params) {
|
||||
return http.put('/user/setPwd', params)
|
||||
}
|
||||
|
||||
export function userDelete() {
|
||||
return http.delete('/user/delete')
|
||||
export function userSetStatus(params) {
|
||||
return http.put('/user/setStatus', params)
|
||||
}
|
||||
|
||||
export function userSetType(params) {
|
||||
return http.put('/user/setType', params)
|
||||
}
|
||||
|
||||
|
||||
export function userDelete(userId) {
|
||||
return http.delete('/user/delete', {params:{userId}})
|
||||
}
|
||||
|
||||
export function userAdd(form) {
|
||||
return http.post('/user/add', form)
|
||||
}
|
||||
|
||||
export function userRestSendCount(userId) {
|
||||
return http.put('/user/resetSendCount', {userId})
|
||||
}
|
||||
|
||||
export function userRestore(userId,type) {
|
||||
return http.put('/user/restore', {userId,type})
|
||||
}
|
||||
Reference in New Issue
Block a user