package com.ltgk.port.domain.dto;

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

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * @Author: wan kun
 * @Description: 告警分类类型
 * @Date: 2025/2/11 16:34
 * @Version: 1.0
 */
@Data
public class SaveWarnAreaTypeReq {
    /**
     * 主键
     */
    @JsonProperty(value = "id")
    @ApiModelProperty(value = "主键")
    private String id;

    /**
     * 报警类型
     */
    @JsonProperty(value = "warnAreaType")
    @ApiModelProperty(value = "报警类型")
    @NotBlank(message = "报警类型不能为空")
    @Size(max = 255, message = "报警类型最大长度要小于 255")
    private String warnAreaType;

    /**
     * 报警类型名称
     */
    @JsonProperty(value = "warnAreaName")
    @ApiModelProperty(value = "报警类型名称")
    @NotBlank(message = "报警类型名称不能为空")
    @Size(max = 255, message = "报警类型名称最大长度要小于 255")
    private String warnAreaName;
}
