package com.zd.airbottle.domain.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

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

@Data
public class QpSupplierCredentialsDto implements Serializable {

    private static final long serialVersionUID = 1L;

    /** 主键 */
    @ApiModelProperty(value = "数据主键",notes = "数据主键，数据产生修改时由前端带入，新增可忽略")
    private Long id;
    /**
     * 资质配置ID
     */
    @ApiModelProperty(value = "资质配置ID")
    private Long certificateId;
    /** 资质名称 */
    @Length(message = "资质名称长度不能超过50")
    @ApiModelProperty(value = "资质名称",required = true)
    private String naturalName;
    /** 资质地址 */
    @Length(message = "资质地址长度不能超过500")
    @ApiModelProperty(value = "资质地址",required = true)
    private String naturalUrl;

    /** 经营说明 */
    @ApiModelProperty(value = "经营说明")
    private String recordExplain;

    /** 有效期开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "有效期开始时间",required = true)
    private Date startTime;
    /** 有效期结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "有效期结束时间",required = true)
    private Date endTime;

}
