All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.nb6868.onex.msg.dto.MailSendForm Maven / Gradle / Ivy

There is a newer version: 4.2.16
Show newest version
package com.nb6868.onex.msg.dto;

import com.nb6868.onex.common.validator.group.DefaultGroup;
import com.nb6868.onex.msg.MsgConst;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import java.io.File;
import java.io.Serializable;
import java.util.List;

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "消息发送请求")
public class MailSendForm implements Serializable {

    @ApiModelProperty(value = "模板编码", required = true, example = "CODE_LOGIN")
    @NotBlank(message = "模板编码不能为空", groups = DefaultGroup.class)
    private String tplCode = MsgConst.SMS_TPL_LOGIN;

    @ApiModelProperty(value = "收件人", required = true)
    @NotBlank(message = "收件人不能为空", groups = DefaultGroup.class)
    private String mailTo;

    @ApiModelProperty(value = "抄送人")
    private String mailCc;

    @ApiModelProperty(value = "标题参数")
    private String titleParam;

    @ApiModelProperty(value = "内容参数")
    private String contentParam;

    @ApiModelProperty(value = "附件")
    List attachments;

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy