package com.dcs.equipment.domain;

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

import java.util.List;

/**
 * @author: wangpx
 * @date: 2025-03-14 14:11
 */
@Data
@ApiModel(value = "Modbus请求")
public class ModbusRequest {
    @ApiModelProperty(value = "设备ID")
    private int slaveId;
    @ApiModelProperty(value = "功能码 (1读线圈, 3读保持寄存器,4读输入寄存器)")
    private String functionCode;
    @ApiModelProperty(value = "数据类型 (1线圈, 2浮点数, 3整型)")
    private String dataType;
    @ApiModelProperty(value = "起始地址")
    private int startAddress;
    @ApiModelProperty(value = "读取长度")
    private int quantity;
    @ApiModelProperty(value = "数据")
    private List<Object> data;
}