package com.template.model.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author ceshi
 * @since 2024-10-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="新增Device对象", description="")
public class insertDeviceRequest implements Serializable {

    @ApiModelProperty(value = "名称")
    @NotBlank(message = "名称不能为空")
    private String name;

    @ApiModelProperty(value = "位置")
    @NotBlank(message = "位置不能为空")
    private String address;

    @ApiModelProperty(value = "设备编号")
    @NotBlank(message = "设备编号不能为空")
    private String deviceNo;

    @ApiModelProperty(value = "类型 烟感：1；摄像机：2；")
    @NotNull(message = "类型不能为空")
    private Integer type;

    @ApiModelProperty(value = "关联人")
    @NotNull(message = "关联人不能为空")
    private Integer userId;

    @ApiModelProperty(value = "设备序列号")
    @NotBlank(message = "设备序列号不能为空")
    private String deviceSn;

}
