提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.system.api.mail.dto; |
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 |
import java.util.Map; |
|
9 |
|
|
10 |
@Schema(description = "RPC 服务 - 邮件发送给 Admin 或者 Member 用户 Request DTO") |
|
11 |
@Data |
|
12 |
public class MailSendSingleToUserReqDTO { |
|
13 |
|
|
14 |
@Schema(description = "用户编号", example = "1024") |
|
15 |
private Long userId; |
|
16 |
@Schema(description = "手机号", requiredMode = Schema.RequiredMode.REQUIRED, example = "15601691300") |
|
17 |
@Email |
|
18 |
private String mail; |
|
19 |
|
|
20 |
@Schema(description = "邮件模板编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "USER_SEND") |
|
21 |
@NotNull(message = "邮件模板编号不能为空") |
|
22 |
private String templateCode; |
|
23 |
|
|
24 |
@Schema(description = "邮件模板参数") |
|
25 |
private Map<String, Object> templateParams; |
|
26 |
|
|
27 |
} |