新增预警页面
This commit is contained in:
63
web-vue/packages/biz/api/biz/mailAccount.ts
Normal file
63
web-vue/packages/biz/api/biz/mailAccount.ts
Normal file
@@ -0,0 +1,63 @@
|
||||
/**
|
||||
* Copyright (c) 2013-Now http://jeesite.com All rights reserved.
|
||||
* No deletion without permission, or be held responsible to law.
|
||||
* @author gaoxq
|
||||
*/
|
||||
import { defHttp } from '@jeesite/core/utils/http/axios';
|
||||
import { useGlobSetting } from '@jeesite/core/hooks/setting';
|
||||
import { BasicModel, Page } from '@jeesite/core/api/model/baseModel';
|
||||
import { UploadApiResult } from '@jeesite/core/api/sys/upload';
|
||||
import { UploadFileParams } from '@jeesite/types/axios';
|
||||
import { AxiosProgressEvent } from 'axios';
|
||||
|
||||
const { ctxPath, adminPath } = useGlobSetting();
|
||||
|
||||
export interface BizMailAccount extends BasicModel<BizMailAccount> {
|
||||
createTime: string; // 记录时间
|
||||
accountName: string;
|
||||
host: string; // SMTP服务
|
||||
smtpPort: number; // SMTP端口
|
||||
imapHost: string; // IMAP服务
|
||||
imapPort: number; // IMAP端口
|
||||
username: string; // 用户名称
|
||||
password: string; // 用户密码
|
||||
fromAddress: string; // 发件人地址
|
||||
sslEnable?: string; // 是否启用SSL
|
||||
ustatus: string; //状态
|
||||
remark?: string; // 备注
|
||||
updateTime: string; // 更新时间
|
||||
ftenantId?: string; // 租户id
|
||||
fflowId?: string; // 流程id
|
||||
fflowTaskId?: string; // 流程任务主键
|
||||
fflowState?: number; // 流程任务状态
|
||||
}
|
||||
|
||||
export const bizMailAccountList = (params?: BizMailAccount | any) =>
|
||||
defHttp.get<BizMailAccount>({ url: adminPath + '/biz/mailAccount/list', params });
|
||||
|
||||
export const bizMailAccountListData = (params?: BizMailAccount | any) =>
|
||||
defHttp.post<Page<BizMailAccount>>({ url: adminPath + '/biz/mailAccount/listData', params });
|
||||
|
||||
export const bizMailAccountForm = (params?: BizMailAccount | any) =>
|
||||
defHttp.get<BizMailAccount>({ url: adminPath + '/biz/mailAccount/form', params });
|
||||
|
||||
export const bizMailAccountSave = (params?: any, data?: BizMailAccount | any) =>
|
||||
defHttp.postJson<BizMailAccount>({ url: adminPath + '/biz/mailAccount/save', params, data });
|
||||
|
||||
export const bizMailAccountImportData = (
|
||||
params: UploadFileParams,
|
||||
onUploadProgress: (progressEvent: AxiosProgressEvent) => void,
|
||||
) =>
|
||||
defHttp.uploadFile<UploadApiResult>(
|
||||
{
|
||||
url: ctxPath + adminPath + '/biz/mailAccount/importData',
|
||||
onUploadProgress,
|
||||
},
|
||||
params,
|
||||
);
|
||||
|
||||
export const bizMailAccountDelete = (params?: BizMailAccount | any) =>
|
||||
defHttp.get<BizMailAccount>({ url: adminPath + '/biz/mailAccount/delete', params });
|
||||
|
||||
export const bizMailReceived = (params?: BizMailAccount | any) =>
|
||||
defHttp.get<BizMailAccount>({ url: adminPath + '/biz/mailAccount/received', params });
|
||||
55
web-vue/packages/biz/api/biz/mailAttachments.ts
Normal file
55
web-vue/packages/biz/api/biz/mailAttachments.ts
Normal file
@@ -0,0 +1,55 @@
|
||||
/**
|
||||
* Copyright (c) 2013-Now http://jeesite.com All rights reserved.
|
||||
* No deletion without permission, or be held responsible to law.
|
||||
* @author gaoxq
|
||||
*/
|
||||
import { defHttp } from '@jeesite/core/utils/http/axios';
|
||||
import { useGlobSetting } from '@jeesite/core/hooks/setting';
|
||||
import { BasicModel, Page } from '@jeesite/core/api/model/baseModel';
|
||||
import { UploadApiResult } from '@jeesite/core/api/sys/upload';
|
||||
import { UploadFileParams } from '@jeesite/types/axios';
|
||||
import { AxiosProgressEvent } from 'axios';
|
||||
|
||||
const { ctxPath, adminPath } = useGlobSetting();
|
||||
|
||||
export interface BizMailAttachments extends BasicModel<BizMailAttachments> {
|
||||
createTime?: string; // 记录时间
|
||||
mailId: number; // 收件标识
|
||||
messageId: string; // 消息标识
|
||||
fileName: string; // 附件名称
|
||||
fileSize: number; // 文件大小
|
||||
fileType?: string; // 文件类型
|
||||
fileExt?: string; // 文件扩展名
|
||||
storagePath: string; // 存储路径
|
||||
fileMd5?: string; // 文件MD5
|
||||
downloadCount?: number; // 下载次数
|
||||
isCompressed?: string; // 是否压缩
|
||||
isEncrypted?: string; // 是否加密
|
||||
}
|
||||
|
||||
export const bizMailAttachmentsList = (params?: BizMailAttachments | any) =>
|
||||
defHttp.get<BizMailAttachments>({ url: adminPath + '/biz/mailAttachments/list', params });
|
||||
|
||||
export const bizMailAttachmentsListData = (params?: BizMailAttachments | any) =>
|
||||
defHttp.post<Page<BizMailAttachments>>({ url: adminPath + '/biz/mailAttachments/listData', params });
|
||||
|
||||
export const bizMailAttachmentsForm = (params?: BizMailAttachments | any) =>
|
||||
defHttp.get<BizMailAttachments>({ url: adminPath + '/biz/mailAttachments/form', params });
|
||||
|
||||
export const bizMailAttachmentsSave = (params?: any, data?: BizMailAttachments | any) =>
|
||||
defHttp.postJson<BizMailAttachments>({ url: adminPath + '/biz/mailAttachments/save', params, data });
|
||||
|
||||
export const bizMailAttachmentsImportData = (
|
||||
params: UploadFileParams,
|
||||
onUploadProgress: (progressEvent: AxiosProgressEvent) => void,
|
||||
) =>
|
||||
defHttp.uploadFile<UploadApiResult>(
|
||||
{
|
||||
url: ctxPath + adminPath + '/biz/mailAttachments/importData',
|
||||
onUploadProgress,
|
||||
},
|
||||
params,
|
||||
);
|
||||
|
||||
export const bizMailAttachmentsDelete = (params?: BizMailAttachments | any) =>
|
||||
defHttp.get<BizMailAttachments>({ url: adminPath + '/biz/mailAttachments/delete', params });
|
||||
58
web-vue/packages/biz/api/biz/mailReceived.ts
Normal file
58
web-vue/packages/biz/api/biz/mailReceived.ts
Normal file
@@ -0,0 +1,58 @@
|
||||
/**
|
||||
* Copyright (c) 2013-Now http://jeesite.com All rights reserved.
|
||||
* No deletion without permission, or be held responsible to law.
|
||||
* @author gaoxq
|
||||
*/
|
||||
import { defHttp } from '@jeesite/core/utils/http/axios';
|
||||
import { useGlobSetting } from '@jeesite/core/hooks/setting';
|
||||
import { BasicModel, Page } from '@jeesite/core/api/model/baseModel';
|
||||
import { UploadApiResult } from '@jeesite/core/api/sys/upload';
|
||||
import { UploadFileParams } from '@jeesite/types/axios';
|
||||
import { AxiosProgressEvent } from 'axios';
|
||||
|
||||
const { ctxPath, adminPath } = useGlobSetting();
|
||||
|
||||
export interface BizMailReceived extends BasicModel<BizMailReceived> {
|
||||
createTime: string; // 记录时间
|
||||
messageId: string; // 邮件服务器消息ID
|
||||
accountId: string; // 邮件账户标识
|
||||
fromAddress: string; // 发件人地址
|
||||
fromName?: string; // 发件人名称
|
||||
toAddresses: string; // 收件人地址
|
||||
ccAddresses?: string; // 抄送地址
|
||||
bccAddresses?: string; // 密送地址
|
||||
subject: string; // 邮件主题
|
||||
mailContent?: string; // 邮件内容
|
||||
receivedTime: string; // 接收时间
|
||||
sendTime?: string; // 发送时间
|
||||
hasAttachment?: string; // 是否有附件
|
||||
mailbox: string; // mailbox
|
||||
ustatus: string; // 状态
|
||||
}
|
||||
|
||||
export const bizMailReceivedList = (params?: BizMailReceived | any) =>
|
||||
defHttp.get<BizMailReceived>({ url: adminPath + '/biz/mailReceived/list', params });
|
||||
|
||||
export const bizMailReceivedListData = (params?: BizMailReceived | any) =>
|
||||
defHttp.post<Page<BizMailReceived>>({ url: adminPath + '/biz/mailReceived/listData', params });
|
||||
|
||||
export const bizMailReceivedForm = (params?: BizMailReceived | any) =>
|
||||
defHttp.get<BizMailReceived>({ url: adminPath + '/biz/mailReceived/form', params });
|
||||
|
||||
export const bizMailReceivedSave = (params?: any, data?: BizMailReceived | any) =>
|
||||
defHttp.postJson<BizMailReceived>({ url: adminPath + '/biz/mailReceived/save', params, data });
|
||||
|
||||
export const bizMailReceivedImportData = (
|
||||
params: UploadFileParams,
|
||||
onUploadProgress: (progressEvent: AxiosProgressEvent) => void,
|
||||
) =>
|
||||
defHttp.uploadFile<UploadApiResult>(
|
||||
{
|
||||
url: ctxPath + adminPath + '/biz/mailReceived/importData',
|
||||
onUploadProgress,
|
||||
},
|
||||
params,
|
||||
);
|
||||
|
||||
export const bizMailReceivedDelete = (params?: BizMailReceived | any) =>
|
||||
defHttp.get<BizMailReceived>({ url: adminPath + '/biz/mailReceived/delete', params });
|
||||
60
web-vue/packages/biz/api/biz/mailSent.ts
Normal file
60
web-vue/packages/biz/api/biz/mailSent.ts
Normal file
@@ -0,0 +1,60 @@
|
||||
/**
|
||||
* Copyright (c) 2013-Now http://jeesite.com All rights reserved.
|
||||
* No deletion without permission, or be held responsible to law.
|
||||
* @author gaoxq
|
||||
*/
|
||||
import { defHttp } from '@jeesite/core/utils/http/axios';
|
||||
import { useGlobSetting } from '@jeesite/core/hooks/setting';
|
||||
import { BasicModel, Page } from '@jeesite/core/api/model/baseModel';
|
||||
import { UploadApiResult } from '@jeesite/core/api/sys/upload';
|
||||
import { UploadFileParams } from '@jeesite/types/axios';
|
||||
import { AxiosProgressEvent } from 'axios';
|
||||
|
||||
const { ctxPath, adminPath } = useGlobSetting();
|
||||
|
||||
export interface BizMailSent extends BasicModel<BizMailSent> {
|
||||
createTime?: string; // 记录时间
|
||||
messageId: string; // 件服务器消息标识
|
||||
accountId: string; // 邮件账户标识
|
||||
fromAddress: string; // 发件人地址
|
||||
toAddresses: string; // 收件人地址
|
||||
ccAddresses?: string; // 抄送人地址
|
||||
subject: string; // 邮件主题
|
||||
content: string; // 邮件内容
|
||||
sendTime?: string; // 发送时间
|
||||
sendStatus: string; // 发送状态
|
||||
errorMsg?: string; // 错误信息
|
||||
hasAttachment?: string; // 是否有附件
|
||||
updateTime?: string; // 更新时间
|
||||
ftenantId?: string; // 租户id
|
||||
fflowId?: string; // 流程id
|
||||
fflowTaskId?: string; // 流程任务主键
|
||||
fflowState?: number; // 流程任务状态
|
||||
}
|
||||
|
||||
export const bizMailSentList = (params?: BizMailSent | any) =>
|
||||
defHttp.get<BizMailSent>({ url: adminPath + '/biz/mailSent/list', params });
|
||||
|
||||
export const bizMailSentListData = (params?: BizMailSent | any) =>
|
||||
defHttp.post<Page<BizMailSent>>({ url: adminPath + '/biz/mailSent/listData', params });
|
||||
|
||||
export const bizMailSentForm = (params?: BizMailSent | any) =>
|
||||
defHttp.get<BizMailSent>({ url: adminPath + '/biz/mailSent/form', params });
|
||||
|
||||
export const bizMailSentSave = (params?: any, data?: BizMailSent | any) =>
|
||||
defHttp.postJson<BizMailSent>({ url: adminPath + '/biz/mailSent/save', params, data });
|
||||
|
||||
export const bizMailSentImportData = (
|
||||
params: UploadFileParams,
|
||||
onUploadProgress: (progressEvent: AxiosProgressEvent) => void,
|
||||
) =>
|
||||
defHttp.uploadFile<UploadApiResult>(
|
||||
{
|
||||
url: ctxPath + adminPath + '/biz/mailSent/importData',
|
||||
onUploadProgress,
|
||||
},
|
||||
params,
|
||||
);
|
||||
|
||||
export const bizMailSentDelete = (params?: BizMailSent | any) =>
|
||||
defHttp.get<BizMailSent>({ url: adminPath + '/biz/mailSent/delete', params });
|
||||
Reference in New Issue
Block a user