Skip to content

Commit f405ac3

Browse files
committed
【优化】新增 sslEnable 字段,支持 outlook 邮箱
1 parent 2d99913 commit f405ac3

File tree

3 files changed

+12
-41
lines changed

3 files changed

+12
-41
lines changed

src/api/system/errorCode/index.ts

Lines changed: 0 additions & 40 deletions
This file was deleted.

src/api/system/mail/account/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export interface MailAccountVO {
88
host: string
99
port: number
1010
sslEnable: boolean
11+
starttlsEnable: boolean
1112
}
1213

1314
// 查询邮箱账号列表

src/views/system/mail/account/account.data.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ export const rules = reactive({
1616
password: [required],
1717
host: [required],
1818
port: [required],
19-
sslEnable: [required]
19+
sslEnable: [required],
20+
starttlsEnable: [required]
2021
})
2122

2223
// CrudSchema:https://doc.iocoder.cn/vue3/crud-schema/
@@ -57,6 +58,15 @@ const crudSchemas = reactive<CrudSchema[]>([
5758
component: 'Radio'
5859
}
5960
},
61+
{
62+
label: '是否开启 STARTTLS',
63+
field: 'starttlsEnable',
64+
dictType: DICT_TYPE.INFRA_BOOLEAN_STRING,
65+
dictClass: 'boolean',
66+
form: {
67+
component: 'Radio'
68+
}
69+
},
6070
{
6171
label: '创建时间',
6272
field: 'createTime',

0 commit comments

Comments
 (0)