From c44ecf08ffc29c78ed11aea244ae64911f7bebdb Mon Sep 17 00:00:00 2001 From: YunaiV Date: Fri, 27 Jan 2023 21:44:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=82=AE=E4=BB=B6=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mail/dto/MailSendSingleToUserReqDTO.java | 26 +++++-------------- .../dto/send/SmsSendSingleToUserReqDTO.java | 3 ++- 2 files changed, 9 insertions(+), 20 deletions(-) diff --git a/yudao-module-system/yudao-module-system-api/src/main/java/cn/iocoder/yudao/module/system/api/mail/dto/MailSendSingleToUserReqDTO.java b/yudao-module-system/yudao-module-system-api/src/main/java/cn/iocoder/yudao/module/system/api/mail/dto/MailSendSingleToUserReqDTO.java index 28333a5e7..57c07cef4 100644 --- a/yudao-module-system/yudao-module-system-api/src/main/java/cn/iocoder/yudao/module/system/api/mail/dto/MailSendSingleToUserReqDTO.java +++ b/yudao-module-system/yudao-module-system-api/src/main/java/cn/iocoder/yudao/module/system/api/mail/dto/MailSendSingleToUserReqDTO.java @@ -1,39 +1,27 @@ package cn.iocoder.yudao.module.system.api.mail.dto; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import lombok.Data; import javax.validation.constraints.Email; import javax.validation.constraints.NotNull; import java.util.Map; -/** - * 邮件发送 Request DTO - * - * @author wangjingqi - */ +@ApiModel("RPC 服务 - 邮件发送给 Admin 或者 Member 用户 Request DTO") @Data public class MailSendSingleToUserReqDTO { - /** - * 用户编号 - */ - @NotNull(message = "用户编号不能为空") + @ApiModelProperty(value = "用户编号", example = "1024") private Long userId; - /** - * 邮箱 - */ + @ApiModelProperty(value = "手机号", required = true, example = "15601691300") @Email private String mail; - /** - * 邮件模板编号 - */ + @ApiModelProperty(value = "邮件模板编号", required = true, example = "USER_SEND") @NotNull(message = "邮件模板编号不能为空") private String templateCode; - /** - * 邮件模板参数 - */ - @NotNull(message = "邮件模板参数不能为空") + @ApiModelProperty(value = "邮件模板参数") private Map templateParams; } diff --git a/yudao-module-system/yudao-module-system-api/src/main/java/cn/iocoder/yudao/module/system/api/sms/dto/send/SmsSendSingleToUserReqDTO.java b/yudao-module-system/yudao-module-system-api/src/main/java/cn/iocoder/yudao/module/system/api/sms/dto/send/SmsSendSingleToUserReqDTO.java index 31d6f5b90..683e1f633 100644 --- a/yudao-module-system/yudao-module-system-api/src/main/java/cn/iocoder/yudao/module/system/api/sms/dto/send/SmsSendSingleToUserReqDTO.java +++ b/yudao-module-system/yudao-module-system-api/src/main/java/cn/iocoder/yudao/module/system/api/sms/dto/send/SmsSendSingleToUserReqDTO.java @@ -18,7 +18,8 @@ public class SmsSendSingleToUserReqDTO { @ApiModelProperty(value = "手机号", required = true, example = "15601691300") @Mobile private String mobile; - @ApiModelProperty(value = "用户编号", required = true, example = "USER_SEND") + + @ApiModelProperty(value = "短信模板编号", required = true, example = "USER_SEND") @NotEmpty(message = "短信模板编号不能为空") private String templateCode; @ApiModelProperty(value = "短信模板参数")