package com.ltgk.catches.domain.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotNull;
import java.time.LocalDate;

/**
 * @Author: wan kun
 * @Description: 生成渔船抽检任务
 * @Date: 2025/1/23 9:26
 * @Version: 1.0
 */
@Data
@Accessors(chain = true)
public class GetTcFishCheckReq {

    @JsonProperty("boatNum")
    @ApiModelProperty(value = "渔船数量", required = true)
    @NotNull(message = "渔船数量不能为空")
    @Max(value = 30, message = "渔船数量不能超过30")
    private Integer boatNum;

    @JsonProperty("isBlack")
    @ApiModelProperty(value = "是否包含黑白名单 0都不排除 1排除黑名单 2排除白名单 3都排除")
    private Integer isBlack = 0;

    @JsonProperty("isLocal")
    @ApiModelProperty(value = "是不是本地渔船 0本地 1外地 2不限")
    private Integer isLocal = 0;

    @ApiModelProperty(value = "抽检日期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate checkDate;

    @ApiModelProperty(value = "抽检内容")
    private String checkContent;

    @ApiModelProperty(value = "抽检名称")
    private String checkName;
}
