package com.njcn.csdevice.pojo.param;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * Description:
 * Date: 2023/5/16  16:25【需求编号】
 *
 * @author clam
 * @version V1.0.0
 */
@Data
public class CsEquipmentAlarmPageParm {
    @NotNull(message="当前页不能为空！")
    @Min(value = 1, message = "当前页不能为0")
    @ApiModelProperty(value = "当前页",name = "pageNum",dataType ="Integer",required = true)
    private Integer pageNum;
    /**显示条数*/
    @NotNull(message="显示条数不能为空！")
    @ApiModelProperty(value = "显示条数",name = "pageSize",dataType ="Integer",required = true)
    private Integer pageSize;

    /**
     * 项目Id
     */
    @ApiModelProperty(value = "项目Id")
    private String projectId;

    /**
     * 设备id
     */
    @ApiModelProperty(value = "设备id")
    private String equipmentId;


    /**
     * 告警级别(字典表)
     */
    @ApiModelProperty(value = "告警级别")
    private String alarmLevel;

    /**
     * 开始时间
     */
    @ApiModelProperty(value = "开始时间")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime startTime;

    /**
     * 结束时间
     */
    @ApiModelProperty(value = "结束时间")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime endTime;


}