提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.system.controller.admin.mail.vo.account; |
H |
2 |
|
|
3 |
import io.swagger.v3.oas.annotations.media.Schema; |
|
4 |
import lombok.Data; |
|
5 |
|
|
6 |
import javax.validation.constraints.Email; |
|
7 |
import javax.validation.constraints.NotNull; |
|
8 |
|
|
9 |
@Schema(description = "管理后台 - 邮箱账号创建/修改 Request VO") |
|
10 |
@Data |
|
11 |
public class MailAccountSaveReqVO { |
|
12 |
|
|
13 |
@Schema(description = "编号", example = "1024") |
|
14 |
private Long id; |
|
15 |
|
|
16 |
@Schema(description = "邮箱", requiredMode = Schema.RequiredMode.REQUIRED, example = "iailabyuanma@123.com") |
|
17 |
@NotNull(message = "邮箱不能为空") |
|
18 |
@Email(message = "必须是 Email 格式") |
|
19 |
private String mail; |
|
20 |
|
|
21 |
@Schema(description = "用户名", requiredMode = Schema.RequiredMode.REQUIRED, example = "iailab") |
|
22 |
@NotNull(message = "用户名不能为空") |
|
23 |
private String username; |
|
24 |
|
|
25 |
@Schema(description = "密码", requiredMode = Schema.RequiredMode.REQUIRED, example = "123456") |
|
26 |
@NotNull(message = "密码必填") |
|
27 |
private String password; |
|
28 |
|
|
29 |
@Schema(description = "SMTP 服务器域名", requiredMode = Schema.RequiredMode.REQUIRED, example = "www.baidu.com") |
|
30 |
@NotNull(message = "SMTP 服务器域名不能为空") |
|
31 |
private String host; |
|
32 |
|
|
33 |
@Schema(description = "SMTP 服务器端口", requiredMode = Schema.RequiredMode.REQUIRED, example = "80") |
|
34 |
@NotNull(message = "SMTP 服务器端口不能为空") |
|
35 |
private Integer port; |
|
36 |
|
|
37 |
@Schema(description = "是否开启 ssl", requiredMode = Schema.RequiredMode.REQUIRED, example = "true") |
|
38 |
@NotNull(message = "是否开启 ssl 必填") |
|
39 |
private Boolean sslEnable; |
|
40 |
|
|
41 |
@Schema(description = "是否开启 starttls", requiredMode = Schema.RequiredMode.REQUIRED, example = "true") |
|
42 |
@NotNull(message = "是否开启 starttls 必填") |
|
43 |
private Boolean starttlsEnable; |
|
44 |
|
|
45 |
} |