package com.dcs.dcs.domain;

import com.dcs.common.annotation.Excel;
import com.dcs.common.core.domain.TreeEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 设备管理对象 dcs_equipment
 * 
 * @author hmy
 * @date 2025-03-11
 */
@Data
@EqualsAndHashCode(callSuper = true)//继承父类属性
@ApiModel(value = "设备管理", description = "dcs_equipment")
public class DcsEquipment extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** 设备id */
    @ApiModelProperty(value = "设备id")
    private Long equipmentId;

    /** 设备地址 */
    @Excel(name = "寄存器地址")
    @ApiModelProperty(value = "寄存器地址")
    private Integer address;

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

    /** 数据类型 */
    @Excel(name = "数据类型")
    @ApiModelProperty(value = "数据类型（1线圈2浮点3整型）")
    private String dataType;

    /** 父设备id */
    @Excel(name = "父设备id")
    @ApiModelProperty(value = "父设备id")
    private Long parentsId;

    /** 流程id */
    @ApiModelProperty(value = "流程id（类似‘1,2’）")
    @Excel(name = "流程id")
    private String flowId;

    /** 设备标识 */
    @Excel(name = "设备标识")
    @ApiModelProperty(value = "设备标识")
    private String equipmentCode;

    /** 寄存器类型 */
    @Excel(name = "寄存器类型")
    @ApiModelProperty(value = "寄存器类型（1线圈3输入4保持）")
    private String registerCode;

    /** 单位类型 */
    @Excel(name = "单位类型")
    @ApiModelProperty(value = "单位类型")
    private String unitType;

    /** 类型 */
    @Excel(name = "设备类型")
    @ApiModelProperty(value = "设备类型(1:设备 2:寄存器)")
    private String equipmentType;

}
