package com.zg.project.Inventory.domain.dto;

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

import javax.validation.constraints.NotBlank;

/**
 * 设备连接参数对象（WiFi方式）
 */
@Data
@ApiModel("连接设备参数")
public class ConnectDTO {

    @ApiModelProperty(value = "设备IP地址", required = true)
    @NotBlank(message = "设备IP不能为空")
    private String ip;

    @ApiModelProperty(value = "设备端口", required = true, example = "60000")
    private int port;
}
