package com.ltgk.port.domain.vo;

import com.ltgk.common.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Size;
import java.util.Date;

/**
 * @Author: wan kun
 * @Description: 水野保护区
 * @Date: 2025/2/12 8:41
 * @Version: 1.0
 */
@Data
public class WaterAreaInfoVo {
    @Excel(name = "行政区域编码", width = 25, height = 18, type = Excel.Type.IMPORT)
    private String areaCode;

    @Excel(name = "行政区域名称", width = 25, height = 18, type = Excel.Type.IMPORT)
    private String areaName;

    @Excel(name = "区域名称", width = 25, height = 18)
    private String name;

    @Excel(name = "区域编码", width = 25, height = 18)
    private String code;

    @ApiModelProperty(value = "区域类型：0=面，1=线，2=圆")
    @Excel(name = "区域类型; 0=面，1=线，2=圆", width = 25, height = 18, type = Excel.Type.IMPORT, readConverterExp = "0=面,1=线,2=圆", combo = "面,线,圆")
    private Integer type;

    @Size(max = 2000, message = "区域坐标：124,39.55;123.3333333,38.93333333;最大长度要小于 2000")
    @Excel(name = "区域坐标; 124,39.55;123.3333333,38.93333333", width = 25, height = 18, type = Excel.Type.IMPORT)
    private String points;

    @ApiModelProperty(value = "区域边框颜色")
    @Size(max = 64, message = "区域边框颜色最大长度要小于 64")
    @Excel(name = "区域边框颜色; #FF0000", width = 25, height = 18, type = Excel.Type.IMPORT)
    private String borderColor;

    @ApiModelProperty(value = "区域边框宽度")
    @Excel(name = "区域边框宽度;1 ", width = 25, height = 18, type = Excel.Type.IMPORT)
    private Integer borderWidth;

    @ApiModelProperty(value = "填充色")
    @Excel(name = "填充色; #FF0000", width = 25, height = 18, type = Excel.Type.IMPORT)
    private String fillColor;

    @ApiModelProperty(value = "透明度")
    @Excel(name = "透明度, 0.5", width = 25, height = 18, type = Excel.Type.IMPORT)
    private String diaphaneity;

    @Excel(name = "创建时间", width = 25, height = 18, dateFormat = "yyyy-MM-dd HH:mm:ss", type = Excel.Type.EXPORT)
    private Date createAt;
}
