mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-07-15 03:25:06 +08:00
邮件模块 添加用户类型 用户编码信息
This commit is contained in:
@ -7,32 +7,32 @@ import lombok.Data;
|
||||
import javax.validation.constraints.Email;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@ApiModel("管理后台 - 邮件发送 Req VO")
|
||||
@Data
|
||||
public class MailSendReqDTO { // TODO @wangjingqi:1), 不用空格;2)应该只要传递 templateCode、参数就好,title、from、content、附件应该都是参数里的
|
||||
|
||||
@ApiModelProperty(value = "邮箱",required = true,example = "yudaoyuanma@123.com")
|
||||
@NotNull(message = "邮箱账号不能为空")
|
||||
@Email(message = "邮箱账号格式错误")
|
||||
private String from;
|
||||
@ApiModelProperty(value = "用户编码",required = true)
|
||||
@NotNull(message = "用户编码不能为空")
|
||||
private String userId;
|
||||
|
||||
@ApiModelProperty(value = "标题",example = "标题")
|
||||
private String title;
|
||||
|
||||
@ApiModelProperty(value = "内容",example = "内容")
|
||||
private String content;
|
||||
@ApiModelProperty(value = "用户类型",required = true)
|
||||
@NotNull(message = "用户类型不能为空")
|
||||
private String userType;
|
||||
|
||||
@ApiModelProperty(value = "邮箱模版id",example = "1024")
|
||||
@NotNull(message = "邮箱模版id不能为空")
|
||||
private Integer templateId;
|
||||
@NotNull(message = "邮箱模版编码不能为空")
|
||||
private Integer templateCode;
|
||||
|
||||
@ApiModelProperty(value = "邮箱参数")
|
||||
@NotNull(message = "模版参数不能为空")
|
||||
private Map<String,Object> templateParams;
|
||||
|
||||
@ApiModelProperty(value = "收件人",required = true,example = "yudaoyuanma@123.com")
|
||||
@NotNull(message = "收件人不能为空")
|
||||
private List<String> tos;
|
||||
|
||||
@ApiModelProperty(value = "附件",example = "附件编码")
|
||||
private List<String> fileIds;
|
||||
|
||||
|
||||
}
|
||||
|
@ -131,5 +131,6 @@ public interface ErrorCodeConstants {
|
||||
ErrorCode MAIL_TEMPLATE_NOT_EXISTS = new ErrorCode(1002021000, "邮箱模版不存在");
|
||||
ErrorCode MAIL_TEMPLATE_EXISTS = new ErrorCode(1002021001, "邮箱模版存在");
|
||||
ErrorCode MAIL_ACCOUNT_RELATE_TEMPLATE_EXISTS = new ErrorCode(1002021002, "存在关联邮箱模版");
|
||||
ErrorCode MAIL_SEND_TEMPLATE_PARAM_MISS = new ErrorCode(1002021003, "模板参数({})缺失");
|
||||
|
||||
}
|
||||
|
@ -0,0 +1,22 @@
|
||||
package cn.iocoder.yudao.module.system.enums.mail;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
|
||||
/**
|
||||
* 邮件日志用户类型
|
||||
*
|
||||
* @author wangjingyi
|
||||
*/
|
||||
@Getter
|
||||
@AllArgsConstructor
|
||||
public enum MailLogUserTypeEnum {
|
||||
|
||||
COMMON (10),
|
||||
VIP (20);
|
||||
|
||||
/**
|
||||
* 类型
|
||||
*/
|
||||
private final int userType;
|
||||
}
|
Reference in New Issue
Block a user