package com.ltgk.port.domain.dto;

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

import javax.validation.constraints.Size;

/**
 * @Author: wan kun
 * @Description: 水野保护区
 * @Date: 2025/2/12 8:39
 * @Version: 1.0
 */
@Data
public class SaveWaterAreaInfoReq {
    @JsonProperty(value = "id")
    @ApiModelProperty(value = "主键")
    @Size(max = 50, message = "主键最大长度要小于 50")
    private String id;

    @ApiModelProperty(value = "区域编码")
    private String code;

    @ApiModelProperty(value = "区域名称")
    private String name;

    @JsonProperty(value = "areaCode")
    @ApiModelProperty(value = "行政区域代码")
    @Size(max = 125, message = "区域代码最大长度要小于 125")
    private String areaCode;

    @JsonProperty(value = "areaName")
    @ApiModelProperty(value = "行政区域名称")
    @Size(max = 125, message = "区域名称最大长度要小于 125")
    private String areaName;

    @JsonProperty(value = "type")
    @ApiModelProperty(value = "区域类型：0=面，1=线，2=圆")
    private Integer type;

    @JsonProperty(value = "points")
    @ApiModelProperty(value = "区域坐标：124,39.55;123.3333333,38.93333333;")
    @Size(max = 2000, message = "区域坐标：124,39.55;123.3333333,38.93333333;最大长度要小于 2000")
    private String points;

    @JsonProperty(value = "borderColor")
    @ApiModelProperty(value = "区域边框颜色")
    @Size(max = 64, message = "区域边框颜色最大长度要小于 64")
    private String borderColor;

    @JsonProperty(value = "borderWidth")
    @ApiModelProperty(value = "区域边框宽度")
    private Integer borderWidth;

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

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

    @JsonProperty(value = "status")
    @ApiModelProperty(value = "状态：0=停用，1=启用")
    private Integer status;
}
