feat:【system】邮箱管理的开发:100%
feat:【system】短信管理的开发:修复 todo
This commit is contained in:
@@ -14,26 +14,32 @@ export interface MailAccount {
|
||||
createTime?: string
|
||||
}
|
||||
|
||||
/** 获取邮箱账号分页列表 */
|
||||
export function getMailAccountPage(params: PageParam) {
|
||||
return http.get<PageResult<MailAccount>>('/system/mail-account/page', params)
|
||||
}
|
||||
|
||||
/** 获取邮箱账号(精简)列表 */
|
||||
export function getSimpleMailAccountList() {
|
||||
return http.get<MailAccount[]>('/system/mail-account/simple-list')
|
||||
}
|
||||
|
||||
/** 获取邮箱账号详情 */
|
||||
export function getMailAccount(id: number) {
|
||||
return http.get<MailAccount>(`/system/mail-account/get?id=${id}`)
|
||||
}
|
||||
|
||||
/** 创建邮箱账号 */
|
||||
export function createMailAccount(data: MailAccount) {
|
||||
return http.post<number>('/system/mail-account/create', data)
|
||||
}
|
||||
|
||||
/** 更新邮箱账号 */
|
||||
export function updateMailAccount(data: MailAccount) {
|
||||
return http.put<boolean>('/system/mail-account/update', data)
|
||||
}
|
||||
|
||||
/** 删除邮箱账号 */
|
||||
export function deleteMailAccount(id: number) {
|
||||
return http.delete<boolean>(`/system/mail-account/delete?id=${id}`)
|
||||
}
|
||||
|
||||
@@ -23,6 +23,12 @@ export interface MailLog {
|
||||
createTime?: string
|
||||
}
|
||||
|
||||
/** 获取邮件日志分页列表 */
|
||||
export function getMailLogPage(params: PageParam) {
|
||||
return http.get<PageResult<MailLog>>('/system/mail-log/page', params)
|
||||
}
|
||||
|
||||
/** 获取邮件日志详情 */
|
||||
export function getMailLog(id: number) {
|
||||
return http.get<MailLog>(`/system/mail-log/get?id=${id}`)
|
||||
}
|
||||
|
||||
@@ -25,26 +25,32 @@ export interface MailSendReqVO {
|
||||
bccMails?: string[]
|
||||
}
|
||||
|
||||
/** 获取邮件模板分页列表 */
|
||||
export function getMailTemplatePage(params: PageParam) {
|
||||
return http.get<PageResult<MailTemplate>>('/system/mail-template/page', params)
|
||||
}
|
||||
|
||||
/** 获取邮件模板详情 */
|
||||
export function getMailTemplate(id: number) {
|
||||
return http.get<MailTemplate>(`/system/mail-template/get?id=${id}`)
|
||||
}
|
||||
|
||||
/** 创建邮件模板 */
|
||||
export function createMailTemplate(data: MailTemplate) {
|
||||
return http.post<number>('/system/mail-template/create', data)
|
||||
}
|
||||
|
||||
/** 更新邮件模板 */
|
||||
export function updateMailTemplate(data: MailTemplate) {
|
||||
return http.put<boolean>('/system/mail-template/update', data)
|
||||
}
|
||||
|
||||
/** 删除邮件模板 */
|
||||
export function deleteMailTemplate(id: number) {
|
||||
return http.delete<boolean>(`/system/mail-template/delete?id=${id}`)
|
||||
}
|
||||
|
||||
/** 发送邮件 */
|
||||
export function sendMail(data: MailSendReqVO) {
|
||||
return http.post<number>('/system/mail-template/send-mail', data)
|
||||
}
|
||||
|
||||
@@ -32,3 +32,8 @@ export interface SmsLog {
|
||||
export function getSmsLogPage(params: PageParam) {
|
||||
return http.get<PageResult<SmsLog>>('/system/sms-log/page', params)
|
||||
}
|
||||
|
||||
/** 获取短信日志详情 */
|
||||
export function getSmsLog(id: number) {
|
||||
return http.get<SmsLog>(`/system/sms-log/get?id=${id}`)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user