package cn.iocoder.byzs.module.iot.controller.admin.plugin.vo.instance;

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

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

// TODO @haohao：后续需要使用下
@Schema(description = "管理后台 - IoT 插件实例分页 Request VO")
@Data
public class PluginInstancePageReqVO extends PageParam {

    @Schema(description = "插件主程序编号", example = "23738")
    private String mainId;

    @Schema(description = "插件id", example = "26498")
    private Long pluginId;

    @Schema(description = "插件主程序所在ip")
    private String ip;

    @Schema(description = "插件主程序端口")
    private Integer port;

    @Schema(description = "心跳时间，心路时间超过30秒需要剔除")
    private Long heartbeatAt;

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

}