package com.template.model.vo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.util.Date;

/**
 * @Author: xwt
 * @Date: 2023/4/18 星期二 9:54
 * @Description: com.video.model.vo
 * @Version: 1.0
 */
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
@Builder
//@JsonInclude(JsonInclude.Include.NON_NULL) 值为空不显示在接口json中
@ApiModel(value="设备", description="")
public class DeviceDetailPageVo {
    @ApiModelProperty(value = "主键ID")
    private Integer id;

    @ApiModelProperty(value = "设备名称")
    private String deviceName;

    @ApiModelProperty(value = "设备地址")
    private String deviceAddress;

    @ApiModelProperty(value = "设备类型ID")
    private Integer deviceTypeId;

    @ApiModelProperty(value = "设备状态名称")
    private Integer deviceStatus;

    @ApiModelProperty(value = "设备状态名称")
    private String deviceStatusName;

    @ApiModelProperty(value = "设备类型名称")
    private String deviceType;

    @ApiModelProperty(value = "设备编号")
    private String deviceNo;

    @ApiModelProperty(value = "设备序列号")
    private String deviceSn;

    @ApiModelProperty(value = "电池电量")
    private String batteryValue;

    @ApiModelProperty(value = "告警类型名称")
    private String typeName;

    @ApiModelProperty(value = "图片地址")
    private String imageBase;

    @ApiModelProperty(value = "是否已处理  未处理：0  已处理：1")
    @JsonIgnore
    private Integer isHandle;

    @ApiModelProperty(value = "是否已处理  未处理：0  已处理：1")
    private String isHandleName;

    @ApiModelProperty(value = "关联人名称")
    private String userName;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @JsonIgnore
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @JsonIgnore
    private Date updateTime;


    @ApiModelProperty(value = "告警时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date warningTime;

    @ApiModelProperty(value = "处理时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date dealTime;
}
