From f405ac329391943ebde6014d548f62dcff61c439 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Wed, 24 Apr 2024 09:14:43 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BC=98=E5=8C=96=E3=80=91=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=20sslEnable=20=E5=AD=97=E6=AE=B5=EF=BC=8C=E6=94=AF?= =?UTF-8?q?=E6=8C=81=20outlook=20=E9=82=AE=E7=AE=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/errorCode/index.ts | 40 ------------------- src/api/system/mail/account/index.ts | 1 + src/views/system/mail/account/account.data.ts | 12 +++++- 3 files changed, 12 insertions(+), 41 deletions(-) delete mode 100644 src/api/system/errorCode/index.ts diff --git a/src/api/system/errorCode/index.ts b/src/api/system/errorCode/index.ts deleted file mode 100644 index 8a86a639..00000000 --- a/src/api/system/errorCode/index.ts +++ /dev/null @@ -1,40 +0,0 @@ -import request from '@/config/axios' - -export interface ErrorCodeVO { - id: number | undefined - type: number - applicationName: string - code: number | undefined - message: string - memo: string - createTime: Date -} - -// 查询错误码列表 -export const getErrorCodePage = (params: PageParam) => { - return request.get({ url: '/system/error-code/page', params }) -} - -// 查询错误码详情 -export const getErrorCode = (id: number) => { - return request.get({ url: '/system/error-code/get?id=' + id }) -} - -// 新增错误码 -export const createErrorCode = (data: ErrorCodeVO) => { - return request.post({ url: '/system/error-code/create', data }) -} - -// 修改错误码 -export const updateErrorCode = (data: ErrorCodeVO) => { - return request.put({ url: '/system/error-code/update', data }) -} - -// 删除错误码 -export const deleteErrorCode = (id: number) => { - return request.delete({ url: '/system/error-code/delete?id=' + id }) -} -// 导出错误码 -export const excelErrorCode = (params) => { - return request.download({ url: '/system/error-code/export-excel', params }) -} diff --git a/src/api/system/mail/account/index.ts b/src/api/system/mail/account/index.ts index b8506b73..15e03917 100644 --- a/src/api/system/mail/account/index.ts +++ b/src/api/system/mail/account/index.ts @@ -8,6 +8,7 @@ export interface MailAccountVO { host: string port: number sslEnable: boolean + starttlsEnable: boolean } // 查询邮箱账号列表 diff --git a/src/views/system/mail/account/account.data.ts b/src/views/system/mail/account/account.data.ts index 8b33edc5..23b1f084 100644 --- a/src/views/system/mail/account/account.data.ts +++ b/src/views/system/mail/account/account.data.ts @@ -16,7 +16,8 @@ export const rules = reactive({ password: [required], host: [required], port: [required], - sslEnable: [required] + sslEnable: [required], + starttlsEnable: [required] }) // CrudSchema:https://doc.iocoder.cn/vue3/crud-schema/ @@ -57,6 +58,15 @@ const crudSchemas = reactive([ component: 'Radio' } }, + { + label: '是否开启 STARTTLS', + field: 'starttlsEnable', + dictType: DICT_TYPE.INFRA_BOOLEAN_STRING, + dictClass: 'boolean', + form: { + component: 'Radio' + } + }, { label: '创建时间', field: 'createTime',