haungxing
1 year ago
9 changed files with 199 additions and 16 deletions
@ -0,0 +1,66 @@
|
||||
package com.hnac.hzims.message.dto; |
||||
|
||||
import io.swagger.annotations.ApiModel; |
||||
import io.swagger.annotations.ApiModelProperty; |
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
import org.springblade.core.mp.support.QueryField; |
||||
import org.springblade.core.mp.support.SqlCondition; |
||||
import org.springframework.web.multipart.MultipartFile; |
||||
|
||||
import javax.validation.constraints.NotNull; |
||||
import java.io.Serializable; |
||||
import java.util.List; |
||||
|
||||
@Data |
||||
@EqualsAndHashCode |
||||
@ApiModel("邮件消息DTO") |
||||
public class MailMessageDTO implements Serializable { |
||||
|
||||
@ApiModelProperty(value = "机构ID",required = true) |
||||
@NotNull(message = "机构ID不能为空") |
||||
private Long deptId; |
||||
|
||||
@ApiModelProperty("机构名称") |
||||
private String deptName; |
||||
|
||||
@ApiModelProperty(value = "业务关键字",required = true) |
||||
@NotNull(message = "业务关键字不能为空") |
||||
private String businessKey; |
||||
|
||||
@ApiModelProperty(value = "业务分类。系统通知:system,事务消息:business,日常提醒:dailyRemind,巡检消息:inspect",required = true) |
||||
@NotNull(message = "业务分类不能为空") |
||||
private String businessClassify; |
||||
|
||||
@ApiModelProperty("业务任务ID") |
||||
@QueryField(condition = SqlCondition.EQUAL) |
||||
private Long taskId; |
||||
|
||||
@NotNull |
||||
@ApiModelProperty(value = "内容") |
||||
private String content; |
||||
|
||||
@NotNull |
||||
@ApiModelProperty(value = "主题") |
||||
private String subject; |
||||
|
||||
@NotNull |
||||
@ApiModelProperty(value = "推送用户") |
||||
private String userIds; |
||||
|
||||
@ApiModelProperty(value = "创建用户") |
||||
private Long createUser; |
||||
|
||||
@ApiModelProperty("邮件内容是否为html") |
||||
private Boolean isHtml; |
||||
|
||||
@ApiModelProperty("邮件附件") |
||||
private List<MultipartFile> appendix; |
||||
|
||||
@ApiModelProperty("抄送账户") |
||||
private String ccAccount; |
||||
|
||||
@ApiModelProperty(value = "租户ID") |
||||
private String tenantId; |
||||
|
||||
} |
Loading…
Reference in new issue