package com.skr.mdm.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * sys_change_certificate
 *
 * @author
 */
@Data
@TableName("sys_change_certificate")
public class SysChangeCertificateDO implements Serializable {
	private Integer id;

	private Integer issuedState;
	/**
	 * 域名/IP
	 */
	private String ipName;
	/**
	 * socket 端口
	 */
    private Integer socketPort;
	/**
	 * 客户端端口
	 */
    private Integer clientPort;

	/**
	 * 版本号
	 */
	private String version;

	/**
	 * 主体
	 */
	private String subjectDn;

	/**
	 * 颁发者
	 */
	private String issuerDn;

	/**
	 * 开始时间
	 */
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	
	private Date beginTime;

	/**
	 * 结束时间
	 */
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	
	private Date endTime;

	/**
	 * 证书名称
	 */
	private String certificateName;

	/**
	 * 下载地址
	 */
	private String downloadUrl;

	/**
	 * 资源文件
	 */
	private String sourceName;

	/**
	 * 公司id
	 */
	private Integer companyId;

	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	
	private Date createTime;

	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	
	private Date updateTime;

	private static final long serialVersionUID = 1L;
}