package com.ltgk.boat.domain.dto;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.ltgk.common.core.page.BasePage;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.sql.Date;

/**
 * 自动识别记录请求参数
 *
 * @author Qi ChengBin
 * @date 2025/03/04
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class AutomaticIdentificationReq extends BasePage {

    @ApiModelProperty(value = "渔船名称")
    @JsonProperty("boatName")
    private String boatName;

    @ApiModelProperty(value = "开始时间")
    @JsonProperty("startTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    @ApiModelProperty(value = "结束时间")
    @JsonProperty("endTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    @ApiModelProperty(value = "进出港类型")
    @JsonProperty("entryOrOutType")
    private Integer entryOrOutType;
}
