com.luna.api.email.dto.MessageDTO Maven / Gradle / Ivy
The newest version!
package com.luna.api.email.dto;
import com.luna.api.email.constant.MessageTypeConstant;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import java.util.List;
import java.util.Map;
public class MessageDTO {
/** 目标列表,邮箱或手机 */
private List targetList;
/** 消息类型,见{@link MessageTypeConstant} */
@NotBlank
private String messageType;
/** 消息id */
@Min(1)
private Long templateId;
/** 占位内容 */
private Map placeholderContent;
public List getTargetList() {
return targetList;
}
public void setTargetList(List targetList) {
this.targetList = targetList;
}
public String getMessageType() {
return messageType;
}
public void setMessageType(String messageType) {
this.messageType = messageType;
}
public long getTemplateId() {
return templateId;
}
public void setTemplateId(long templateId) {
this.templateId = templateId;
}
public Map getPlaceholderContent() {
return placeholderContent;
}
public void setPlaceholderContent(Map placeholderContent) {
this.placeholderContent = placeholderContent;
}
}