package com.zksy.manhole.dto.in;

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

import java.io.Serializable;
import java.util.Date;

/**
 * 分页查询终端故障列表-入参
 *
 * @author xianggx
 */
@Data
@ApiModel(value = "分页查询终端故障列表-入参", description = "分页查询终端故障列表-入参")
public class TerminalFaultPageInDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "故障编号")
    private String faultNo;

    @ApiModelProperty(value = "关联终端设备ID")
    private String deviceId;

    @ApiModelProperty(value = "故障等级：1-严重 2-一般")
    private Integer faultLevel;

    @ApiModelProperty(value = "故障来源：1-设备报警 2-人工上报 3-巡检发现")
    private Integer faultSource;

    @ApiModelProperty(value = "故障状态：1-未处理 2-处理中 3-已修复 4-已返厂 5-已报废")
    private Integer faultStatus;

    @ApiModelProperty(value = "故障发生开始时间")
    @JsonFormat(locale = "zh", pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date startTime;

    @ApiModelProperty(value = "故障发生结束时间")
    @JsonFormat(locale = "zh", pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date endTime;

    @ApiModelProperty(value = "当前记录起始索引", required = true)
    private Long pageNum;

    @ApiModelProperty(value = "每页显示记录数", required = true)
    private Long pageSize;
}
