package com.ruoyi.system.domain.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ContractDTO extends BaseEntity {
    /** id */
    private Long id;

    /** 证书类型 */
    @Excel(name = "证书类型", readConverterExp = "0=个人会员证,1=团体会员证,2=企业会员证,3=理事聘书,4=一般聘书", type = Excel.Type.ALL)
    private Long certType;

    /** 姓名或者单位 */
    @Excel(name = "姓名或者单位",type = Excel.Type.ALL)
    private String name;

    /** 身份证或者编码 */
    @Excel(name = "身份证或者编码",type = Excel.Type.ALL)
    private String code;

    /** 证书编码 */
    @Excel(name = "证书编码",type = Excel.Type.ALL)
    private String certId;

    /** 专业委员会 */
    @Excel(name = "专业委员会", readConverterExp = "0=天文教育,1=地理教育,2=中学数学教育,3=中学阅读与发展",type = Excel.Type.ALL)
    private Integer certMajor;

    /** 发证时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发证时间", width = 30, dateFormat = "yyyy-MM-dd", type = Excel.Type.ALL)
    private Date issueDate;

    /** 证书有效期 */
    @Excel(name = "证书有效期",type = Excel.Type.ALL)
    private String validTerm;

    /** 邮箱 */
    @Excel(name = "邮箱",type = Excel.Type.ALL)
    private String email;

    /** 手机号 */
    @Excel(name = "手机号",type = Excel.Type.ALL)
    private String phone;

    /** 导入系统的时间戳 */
    private Date updateDate;

    /** 证书文字 */
    @Excel(name = "证书文字",type = Excel.Type.ALL)
    private String certContent;

    /** 证书模板地址 */
    private String url;
}
