pnkx-admin-mongo/pnkx-uniapp/api/px/blog/mail.js
2024-01-13 13:29:20 +08:00

54 lines
991 B
JavaScript

import request from '@/utils/request'
// 查询邮件记录列表
export function listEmail(query) {
return request({
url: '/admin/email/list',
method: 'get',
params: query
})
}
// 查询邮件记录详细
export function getEmail(id) {
return request({
url: '/admin/email/' + id,
method: 'get'
})
}
// 新增邮件记录
export function addEmail(data) {
return request({
url: '/admin/email',
method: 'post',
data: data
})
}
// 修改邮件记录
export function updateEmail(data) {
return request({
url: '/admin/email',
method: 'put',
data: data
})
}
// 删除邮件记录
export function delEmail(id) {
return request({
url: '/admin/email/' + id,
method: 'delete'
})
}
// 导出邮件记录
export function exportEmail(query) {
return request({
url: '/admin/email/export',
method: 'get',
params: query
})
}