package com.huimv.env.input.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 端口
 * </p>
 *
 * @author author
 * @since 2024-05-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("terminal_port")
public class TerminalPort implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 端口编号
     */
    private String deviceCode;

    /**
     * 终端ID
     */
    private Integer terminalId;

    /**
     * 户名ID
     */
    private Integer locationId;

    /**
     * 小区ID
     */
    private Integer farmId;

    /**
     * 电压有效值
     */
    private String voltage;

    /**
     * 电流有效值
     */
    private String electricCurrent;

    /**
     * 温度
     */
    private String temp;

    /**
     * 漏电值
     */
    private String leakageValue;

    /**
     * 有功功率
     */
    private Integer activePower;

    /**
     * 无功功率
     */
    private Integer reactivePower;

    /**
     * 视在功率
     */
    private Integer apparentPower;

    /**
     * 高温报警 0 无
     */
    private Integer heightTempWarning;

    /**
     * 充电报警 0 无
     */
    private Integer chargingWarning;

    /**
     * 漏电报警 0 无
     */
    private Integer leakageWarning;

    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 状态 0为离线 1为在线
     */
    private Integer status;


}
