package com.dcs.equipment.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author: wangpx
 * @date: 2025-03-21 09:40
 */
@Data
@ApiModel(value = "判断条件")
public class Condition {
    @ApiModelProperty(value = "设备ID")
    private int slaveId;
    @ApiModelProperty(value = "条件名称")
    private String conditionName;
    @ApiModelProperty(value = "条件类型 and/or/before/after")
    private String conditionType;
    @ApiModelProperty(value = "功能码 (1读线圈, 3读保持寄存器,4读输入寄存器)")
    private String functionCode;
    @ApiModelProperty(value = "寄存器地址")
    private Integer address;
    @ApiModelProperty(value = "数据类型 (1布尔, 2浮点, 3整型)")
    private String dataType;
    @ApiModelProperty(value = "判断值")
    private Object value;
}
