package cn.iocoder.yudao.module.iot.controller.admin.gateway.vo;

import cn.iocoder.yudao.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
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 = "管理后台 - 网关分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class GatewayPageReqVO extends PageParam {

    @Schema(description = "管理地址")
    private String adminIp;

    @Schema(description = "管理账号", example = "芋艿")
    private String username;

    @Schema(description = "管理密码")
    private String password;

    @Schema(description = "网关名字", example = "赵六")
    private String gatewayName;

    @Schema(description = "备注", example = "随便")
    private String remark;

    @Schema(description = "是否启用")
    private Boolean isEnable;

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

    @Schema(description = "网关编码")
    private String gatewayCode;

    @Schema(description = "网关状态", example = "1")
    private String gatewayStatus;

    @Schema(description = "订阅主题")
    private String topic;

}