package com.ltgk.port.domain.dto;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.ltgk.common.core.page.BasePage;
import com.ltgk.common.validation.groups.Add;
import com.ltgk.common.validation.groups.Detail;
import com.ltgk.common.validation.groups.Update;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 重点区域信息/功能区 数据传输对象
 *
 * @author Qi ChengBin
 * @date 2024/12/13 17:10:34
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "重点区域信息/功能区 查询传输对象")
public class DsMainAreaDTO extends BasePage {

    @ApiModelProperty(value = "主键")
    @NotNull(message = "主键不能为空！", groups = {Update.class, Detail.class})
    private String id;

    @ApiModelProperty(value = "标注名称")
    @NotNull(message = "标注名称不能为空！", groups = {Update.class, Add.class})
    private String markName;

    @ApiModelProperty(value = "标注类型  1、管控区域 2、泊区3、待泊区4、航道5、捕捞区6、养殖区")
    @NotNull(message = "标注类型不能为空！", groups = {Update.class, Add.class})
    private Integer markType;

    @ApiModelProperty(value = "编号")
    private Integer markId;

    @ApiModelProperty(value = "类别")
    private String areaType;

    @ApiModelProperty(value = "名称显示状态")
    private String nameDisplayState;

    @ApiModelProperty(value = "填充色")
    private String fillColor;

    @ApiModelProperty(value = "透明度")
    private String diaphaneity;

    @ApiModelProperty(value = "线条颜色")
    private String lineColor;

    @ApiModelProperty(value = "线框线宽")
    private String lineWidth;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "位置信息")
    private String positionInfo;

    @ApiModelProperty(value = "历史报警船舶数量")
    private Long historyAlarmNum;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @ApiModelProperty(value = "创建时间")
    private Date createAt;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @ApiModelProperty(value = "修改时间")
    private Date updateAt;

    @ApiModelProperty(value = "创建者")
    private String createBy;

    @ApiModelProperty(value = "更新者")
    private String updateBy;

    @ApiModelProperty(value = "功能区域 1、大型船舶停靠区2、中型船舶停靠区3、小型船舶停靠区4、商船停靠区、5、高速航道6、中速航道7、低速航道")
    private Integer functionArea;

    @ApiModelProperty(value = "泊区停靠渔船最大数量")
    private Integer maxBoatCount;

    @ApiModelProperty(value = "泊区停靠渔船最大数量预警值 1-100 百分比")
    private String earlyWarning;

    @ApiModelProperty(value = "泊区航道划分最小功率")
    private BigDecimal minPower;

    @ApiModelProperty(value = "泊区航道划分最大功率")
    private BigDecimal maxPower;

    @ApiModelProperty(value = "所属渔港id")
    private String portId;

    @ApiModelProperty(value = "所属渔港名称")
    private String portName;

    @ApiModelProperty(value = "行政区域编码")
    @NotNull(message = "行政区域编码不能为空", groups = {Update.class, Add.class})
    private String areaCode;

    @ApiModelProperty(value = "行政区域名称")
    @NotNull(message = "行政区域名称不能为空", groups = {Update.class, Add.class})
    private String areaName;

    @ApiModelProperty(value = "开始时间")
    private String startTime;

    @ApiModelProperty(value = "结束时间")
    private String endTime;

    @ApiModelProperty(value = "区域分类 1、重点区域")
    private Integer type;

    @ApiModelProperty(value = "是否显示； 0 - 不显示 ， 1 - 显示")
    private Integer beShow;
}
