package cn.ey.biz.module.system.api.msg.dto;

import cn.ey.biz.module.system.api.bpm.dto.BpmWeaverDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.List;
import java.util.Map;

@ApiModel("邮件发送 DTO")
@Data
public class SendEmailDTO extends BpmWeaverDTO {

    @ApiModelProperty(value = "邮件主题")
    private String  title;

    @ApiModelProperty(value = "邮件内容")
    private  String content;

    @ApiModelProperty(value = "接收人邮件（多个用，分割）")
    private String  sendTo;

    @ApiModelProperty(value = "抄送人邮箱（多个用，分割）")
    private String  sendCc;

//    @ApiModelProperty(value = "模版编号")
//    private String  code;

    @ApiModelProperty(value = "消息模板 （见补充说明）")
    private Template template;

    @ApiModelProperty(value = "邮件附件（见补充说明）")
    private List<Files> files;

    @Data
    public  static class Template {
        String  code;
        Map<String,String> params;
    }

    @Data
    public static class Files {
        String  name;   //附件名称2.jpg",
        String  data;   //"base64:xxxx"
    }

}
