package com.dcs.hnyz.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.dcs.common.annotation.Excel;
import com.dcs.common.core.domain.BaseEntity;

/**
 * 设备管理对象 equipment
 * 
 * @author hmy
 * @date 2025-04-22
 */
@Data
@TableName("equipment")
@ApiModel(value = "设备管理对象", description = "设备管理")
public class Equipment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 设备id */
    @TableId(value = "equipment_id") // 如果你主键字段不是 id，必须加！
    @ApiModelProperty(value = "设备id")
    private Long equipmentId;

    /** 设备名 */
    @Excel(name = "设备名")
    @ApiModelProperty(value = "设备名")
    private String equipmentName;

    /** 流程id(用‘,’分隔) */
    @Excel(name = "流程id(用‘,’分隔)")
    @ApiModelProperty(value = "流程id(用‘,’分隔)")
    private String flowIds;

    /** 标识码 */
    @Excel(name = "标识码")
    @ApiModelProperty(value = "标识码")
    private String code;

    /** 设备种类 */
    @Excel(name = "设备种类")
    @ApiModelProperty(value = "设备种类")
    private String equipmentType;

    /** 对应plc的id */
    @Excel(name = "对应plc的id")
    @ApiModelProperty(value = "对应plc的id")
    private Long plcId;


    /**
     * 通信地址
     */
    @Excel(name = "通信地址")
    @TableField(value = "ip_address")
    @ApiModelProperty(value = "通信地址")
    private String ipAddress;

    /**
     * 通信端口
     */
    @Excel(name = "通信端口")
    @TableField(value = "port")
    @ApiModelProperty(value = "通信端口")
    private Long port;

    /** 通讯协议id */
    @Excel(name = "通讯协议id")
    @ApiModelProperty(value = "通讯协议id")
    private Long protocolId;

    /** 状态 0-启用,1-禁用*/
    @Excel(name = "状态")
    @ApiModelProperty(value = "状态 0-启用,1-禁用")
    private String status;

    /** 删除标志 0-存在 2-删除 */
    @TableLogic
    @ApiModelProperty(value = "删除标志 0-存在 2-删除")
    private String delFlag;

}
