package com.njcn.device.pq.pojo.param;

import com.njcn.common.pojo.constant.PatternRegex;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * @version 1.0.0
 * @author: chenchao
 * @date: 2022/08/16 14:30
 */
@Data
@ApiModel
public class TabCensusParam {

    @ApiModelProperty("开始时间")
    @Pattern(regexp = PatternRegex.TIME_FORMAT, message = "时间格式错误")
    private String searchBeginTime;

    @ApiModelProperty("结束时间")
    @Pattern(regexp = PatternRegex.TIME_FORMAT, message = "时间格式错误")
    private String searchEndTime;

    /**
     * (监测点、终端)等级
     */
    @ApiModelProperty("(监测点、终端)等级：0-全部；1-极重要；2-重要；3-普通；4-不重要；")
    @NotNull(message = "(监测点、终端)等级不可为空")
    @Max(value = 4)
    @Min(value = 0)
    private Integer level;

    /**
     * 是否合格
     */
    @ApiModelProperty("是否合格：0-全部；1-不合格；2-合格；")
    @NotNull(message = "是否合格不可为空")
    @Max(value = 2)
    @Min(value = 0)
    private Integer qualify;


}
