package cn.iocoder.yudao.module.pms.controller.admin.yanfan.var.slave.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;

@Schema(description = "管理后台 - yf变量模板设备从机对象 Response VO")
@Data
@ExcelIgnoreUnannotated
public class IotYfVarTempSalveRespVO {

    @Schema(description = "主键id", requiredMode = Schema.RequiredMode.REQUIRED, example = "705")
    @ExcelProperty("主键id")
    private Long id;

    @Schema(description = "关联的模板id", requiredMode = Schema.RequiredMode.REQUIRED, example = "5860")
    @ExcelProperty("关联的模板id")
    private Long deviceTempId;

    @Schema(description = "从机编号")
    @ExcelProperty("从机编号")
    private Integer slaveAddr;

    @Schema(description = "序号")
    @ExcelProperty("序号")
    private Integer slaveIndex;

    @Schema(description = "从机ip地址")
    @ExcelProperty("从机ip地址")
    private String slaveIp;

    @Schema(description = "从机名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
    @ExcelProperty("从机名称")
    private String slaveName;

    @Schema(description = "从机端口")
    @ExcelProperty("从机端口")
    private Integer slavePort;

    @Schema(description = "寄存器起始地址(10进制)")
    @ExcelProperty("寄存器起始地址(10进制)")
    private Long addrStart;

    @Schema(description = "寄存器结束地址(10进制)")
    @ExcelProperty("寄存器结束地址(10进制)")
    private Long addrEnd;

    @Schema(description = "寄存器批量读取个数")
    @ExcelProperty("寄存器批量读取个数")
    private Integer packetLength;

    @Schema(description = "批量获取轮询时间(默认5分钟)")
    @ExcelProperty("批量获取轮询时间(默认5分钟)")
    private Long timer;

    @Schema(description = "状态 0-启动 1-失效", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty("状态 0-启动 1-失效")
    private Integer status;

    @Schema(description = "功能编码")
    @ExcelProperty("功能编码")
    private Integer code;

    @Schema(description = "创建时间")
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "部门id", example = "22314")
    @ExcelProperty("部门id")
    private Long deptId;

    @Schema(description = "备注", example = "你说的对")
    @ExcelProperty("备注")
    private String remark;

}
