package com.yuchen.saas.park.api.vo.request;

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

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.List;


/**
 * @ClassName DeviceCategoryRelRequest
 * @Description 园区设备分类关联
 * @Author 肖祥
 * @Date 2022/10/5 14:50
 * @Version 1.0。0
 **/
@Data
@ApiModel(value = "园区设备分类关联")
public class DeviceCategoryRelRequest implements Serializable {

    /**
     * 设备分类id
     */
    @ApiModelProperty(value = "设备分类id")
    @NotNull(message = "设备分类id不能为空")
    private Long categoryId;

    /**
     * 设备id
     */
    @ApiModelProperty(value = "设备id")
    @NotEmpty(message = "设备id列表不能为空")
    @Size(min = 1,max = 100,message = "关联设备数量从1到100")
    private List<Long> deviceIdList;
}
