package com.zksy.visualization.domain.request;

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

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * @author Administrator
 * @version 1.0
 * @project dh-server-micro
 * @description 智能插座分页查询
 * @date 2024/12/19 09:27:57
 */
@Data
public class SmartSocketRequest {
    @ApiModelProperty(value = "根据设备的编码信息查询")
    @Size(min = 1, message = "至少需要一个设备编码")
    private List<String> deviceCodes;

    @ApiModelProperty(value = "根据设备名称模糊查询")
    private String searchName;

    @ApiModelProperty(value = "第几页", required = true)
    @NotNull(message = "页码不能为空")
    private Integer pageNum;

    @ApiModelProperty(value = "每页条数", required = true)
    @NotNull(message = "每页条数不能为空")
    private Integer pageSize;

    @ApiModelProperty(value = "组织编码")
    @Size(min = 1, message = "至少需要一个组织编码")
    private List<String> orgData;
}
