增加邮件功能
parent
cb111fd9ba
commit
c44ecf08ff
|
@ -1,39 +1,27 @@
|
||||||
package cn.iocoder.yudao.module.system.api.mail.dto;
|
package cn.iocoder.yudao.module.system.api.mail.dto;
|
||||||
|
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import javax.validation.constraints.Email;
|
import javax.validation.constraints.Email;
|
||||||
import javax.validation.constraints.NotNull;
|
import javax.validation.constraints.NotNull;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
/**
|
@ApiModel("RPC 服务 - 邮件发送给 Admin 或者 Member 用户 Request DTO")
|
||||||
* 邮件发送 Request DTO
|
|
||||||
*
|
|
||||||
* @author wangjingqi
|
|
||||||
*/
|
|
||||||
@Data
|
@Data
|
||||||
public class MailSendSingleToUserReqDTO {
|
public class MailSendSingleToUserReqDTO {
|
||||||
|
|
||||||
/**
|
@ApiModelProperty(value = "用户编号", example = "1024")
|
||||||
* 用户编号
|
|
||||||
*/
|
|
||||||
@NotNull(message = "用户编号不能为空")
|
|
||||||
private Long userId;
|
private Long userId;
|
||||||
/**
|
@ApiModelProperty(value = "手机号", required = true, example = "15601691300")
|
||||||
* 邮箱
|
|
||||||
*/
|
|
||||||
@Email
|
@Email
|
||||||
private String mail;
|
private String mail;
|
||||||
|
|
||||||
/**
|
@ApiModelProperty(value = "邮件模板编号", required = true, example = "USER_SEND")
|
||||||
* 邮件模板编号
|
|
||||||
*/
|
|
||||||
@NotNull(message = "邮件模板编号不能为空")
|
@NotNull(message = "邮件模板编号不能为空")
|
||||||
private String templateCode;
|
private String templateCode;
|
||||||
/**
|
@ApiModelProperty(value = "邮件模板参数")
|
||||||
* 邮件模板参数
|
|
||||||
*/
|
|
||||||
@NotNull(message = "邮件模板参数不能为空")
|
|
||||||
private Map<String, Object> templateParams;
|
private Map<String, Object> templateParams;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,7 +18,8 @@ public class SmsSendSingleToUserReqDTO {
|
||||||
@ApiModelProperty(value = "手机号", required = true, example = "15601691300")
|
@ApiModelProperty(value = "手机号", required = true, example = "15601691300")
|
||||||
@Mobile
|
@Mobile
|
||||||
private String mobile;
|
private String mobile;
|
||||||
@ApiModelProperty(value = "用户编号", required = true, example = "USER_SEND")
|
|
||||||
|
@ApiModelProperty(value = "短信模板编号", required = true, example = "USER_SEND")
|
||||||
@NotEmpty(message = "短信模板编号不能为空")
|
@NotEmpty(message = "短信模板编号不能为空")
|
||||||
private String templateCode;
|
private String templateCode;
|
||||||
@ApiModelProperty(value = "短信模板参数")
|
@ApiModelProperty(value = "短信模板参数")
|
||||||
|
|
Loading…
Reference in New Issue