package com.ltgk.boat.domain.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @Author: wan kun
 * @Description: TODO
 * @Date: 2024/10/28 20:30
 * @Version: 1.0
 */
@Data
public class SaveBoatCredentialReq {
    @ApiModelProperty(value = "id")
    @JsonProperty("id")
    private Long id;
    @NotBlank(message = "船名不能为空")
    @ApiModelProperty(value = "船名")
    @JsonProperty("boatName")
    private String boatName;
    @NotBlank(message = "证书编号不能为空")
    @ApiModelProperty(value = "证书编号")
    @JsonProperty("code")
    private String code;
    @NotBlank(message = "发证日期不能为空")
    @ApiModelProperty(value = "发证日期")
    @JsonProperty("issueDate")
    private String issueDate;
    @NotBlank(message = "证书开始时间不能为空")
    @ApiModelProperty(value = "证书开始时间")
    @JsonProperty("credentialStartTime")
    private String credentialStartTime;
    @NotBlank(message = "证书结束时间不能为空")
    @ApiModelProperty(value = "证书结束时间")
    @JsonProperty("credentialEndTime")
    private String credentialEndTime;
    @NotBlank(message = "发证机关不能为空")
    @ApiModelProperty(value = "发证机关")
    @JsonProperty("issueAuthority")
    private String issueAuthority;
    @NotBlank(message = "证书状态不能为空")
    @ApiModelProperty(value = "证书状态:正常、暂停、撤销、注销、过期")
    @JsonProperty("status")
    private String status;
    @NotBlank(message = "证书类型不能为空")
    @ApiModelProperty(value = "证书类型:渔业捕捞许可证渔船检验证书前次许可证国籍证书船网工具指标批准书涉韩证")
    @JsonProperty("type")
    private String type;
    @ApiModelProperty(value = "备注")
    @JsonProperty("remark")
    private String remark;
    @NotBlank(message = "证书文件不能为空")
    @ApiModelProperty(value = "证书文件")
    @JsonProperty("file")
    private String file;
}
