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:34:31
 */
@Data
public class IntelligenceSensorRequest {
    @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 = "所属物模型种类 4：人体传感器 10：光照传感器 9：红外传感器", required = true)
    @NotNull(message = "所属物模型种类不能为空")
    @Size(min = 1, message = "至少需要选择一种物模型种类")
    private List<Integer> iotTypes;
}
