package com.zksy.visualization.domain.request;

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

import javax.validation.constraints.NotBlank;

/**
 * @author Administrator
 * @version 1.0
 * @project dh-server-micro
 * @description 获取设备能力
 * @date 2024/12/16 15:10:32
 */
@Data
public class AcquisitionDeviceRequest {
    @ApiModelProperty(value = "设备IP", required = false)
    private String address;

    @ApiModelProperty(value = "设备端口", required = false)
    private Integer port;

    @ApiModelProperty(value = "主动注册Id", required = false)
    private String deviceNo;

    @ApiModelProperty(value = "设备厂商，固定值Dahua", required = true, example = "Dahua")
    @NotBlank(message = "设备厂商不能为空")
    private String deviceManufacturer;

    @ApiModelProperty(value = "设备类型，固定值iGATEWAY", required = true, example = "iGATEWAY")
    @NotBlank(message = "设备类型不能为空")
    private String deviceClass;

    @ApiModelProperty(value = "设备编码", required = true)
    @NotBlank(message = "设备编码不能为空")
    private String deviceCode;

    @ApiModelProperty(value = "协议类型，IP方式为Dahua2，主动注册方式为Dahua-Reg", required = true)
    @NotBlank(message = "协议类型不能为空")
    private String protocolType;

    @ApiModelProperty(value = "空开类型，固定值AIRSWITCH", required = true, example = "AIRSWITCH")
    @NotBlank(message = "空开类型不能为空")
    private String type;

    @ApiModelProperty(value = "设备用户名", required = true)
    @NotBlank(message = "设备用户名不能为空")
    private String username;

    @ApiModelProperty(value = "密码，明文展示", required = true)
    @NotBlank(message = "密码不能为空")
    private String password;

}
