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 lombok.NoArgsConstructor;

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

/**
 * 设备异常统计接收前端参数
 *
 * @author yzh
 * @date 2022/9/27
 */

@Data
@ApiModel
@NoArgsConstructor
public class DeviceRunExceptionParam {

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

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

    /**
     * 时间范围标志
     */
    @ApiModelProperty(name = "timeFlag", value = "时间范围标志 0.查询展示年或季 1.查询展示月或周")
    private Integer timeFlag;

    /**
     * 终端等级
     */
    @ApiModelProperty(name = "algoDescribe", value = "终端等级，0：极重要  1：重要  2：普通  3：不重要")
    @NotNull(message = "终端等级不可为空")
    @Max(value = 4)
    @Min(value = 0)
    private Integer algoDescribe;
}
