package com.zcloud.basic.info.dto;

import com.alibaba.cola.dto.Command;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.codehaus.jackson.annotate.JsonProperty;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

/**
 * web-client
 *
 * @Author zhaokai
 * @Date 2025-10-30 09:54:16
 */
@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
@AllArgsConstructor
public class CorpQualificationInfoAddCmd extends Command {

    @ApiModelProperty(value = "资质id", name = "corpQualificationinfoId", required = true)
    private String corpQualificationinfoId;
    @ApiModelProperty(value = "企业id", name = "corpinfoId", required = true)
    @NotNull(message = "企业id不能为空")
    private Long corpinfoId;
    @ApiModelProperty(value = "资质名称,汉字30以内", name = "qualificationName", required = true)
    @NotEmpty(message = "资质名称不能为空")
    private String qualificationName;
    @ApiModelProperty(value = "开始证书有效期", name = "startValidityTime", required = true)
    @NotNull(message = "开始证书有效期不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date startValidityTime;
    @ApiModelProperty(value = "结束证书有效期", name = "endValidityTime", required = true)
    @NotNull(message = "结束证书有效期不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date endValidityTime;

    @ApiModelProperty(value = "证书编号", name = "certificateNo", required = true)
    @NotEmpty(message = "证书编号不能为空")
    private String certificateNo;


}

