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

import lombok.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - yf变量模板设备从机对象分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class IotYfVarTempSalvePageReqVO extends PageParam {

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

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

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

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

    @Schema(description = "从机名称", example = "赵六")
    private String slaveName;

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

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

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

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

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

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

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

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

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

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

}
