package com.kym.entity.admin;

import com.baomidou.mybatisplus.annotation.TableName;
import com.kym.entity.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * <p>
 * 设备监控日志表
 * </p>
 *
 * @author skyline
 * @since 2023-08-29
 */
@Getter
@Setter
@TableName("t_monitor_log")
@Accessors(chain = true)
public class MonitorLog extends BaseEntity {

    private static final long serialVersionUID = 1L;

    public static int IS_RECOVER_未恢复 = 0;
    public static int IS_RECOVER_已恢复 = 1;

    /**
     * 站点id
     */
    private String stationId;

    /**
     * 类型：0未知 1网关 2充电桩
     */
    private Integer type;

    /**
     * 设备SN
     */
    private String sn;

    /**
     * 离线时间
     */
    private LocalDateTime offlineTime;

    /**
     * 离线原因状态 充电桩0-离网
     */
    private Integer offlineStatus;

    /**
     * 是否已通知:0未通知 1已通知
     */
    private Integer isNotice;

    /**
     * 是否已恢复 0:未恢复 1：已恢复
     */
    private Integer isRecover;

    /**
     * 恢复时间
     */
    private LocalDateTime recoverTime;
}
