🔖 升级版本.
This commit is contained in:
@@ -28,10 +28,7 @@ import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import javax.validation.constraints.Max;
|
||||
import javax.validation.constraints.Min;
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.Size;
|
||||
import javax.validation.constraints.*;
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
@@ -78,8 +75,7 @@ public class HostCreateRequest implements Serializable {
|
||||
@Schema(description = "主机端口")
|
||||
private Integer port;
|
||||
|
||||
// TODO
|
||||
// @NotEmpty
|
||||
@NotEmpty
|
||||
@Schema(description = "主机分组")
|
||||
private List<Long> groupIdList;
|
||||
|
||||
|
||||
@@ -76,8 +76,7 @@ public class HostUpdateRequest implements Serializable {
|
||||
@Schema(description = "主机端口")
|
||||
private Integer port;
|
||||
|
||||
// TODO
|
||||
// @NotEmpty
|
||||
@NotEmpty
|
||||
@Schema(description = "主机分组")
|
||||
private List<Long> groupIdList;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user