package com.limap.core.screen.vo;

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

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class ControlSwitchVo {

    @NotBlank(message = "iotId不能为空")
    private String iotId;

    @NotNull(message = "开关标识不能为空")
    private Integer index;

    @ApiModelProperty(value = "控制状态 0 1")
    @NotNull(message = "控制状态不能为空")
    @Min(value = 0,message = "控制状态只能是0或1")
    @Max(value = 1,message = "控制状态只能是0或1")
    private Integer status;
}
