REM:
1.增加字段不为空判断
This commit is contained in:
chenlinghy 2020-09-16 16:41:46 +08:00
parent 1b490c9274
commit 10e03a60b9
1 changed files with 3 additions and 0 deletions

View File

@ -44,17 +44,20 @@ public class AddCapacityInfo {
/**
* The Ip type.
*/
@NotNull(message = "ipType IP地址类型不能为空", groups = ValidGroups.AddDeviceValid.class)
@ValidBaseEnum(enumClass = IpAddrType.class, groups = ValidGroups.AddDeviceValid.class)
private Integer ipType;
/**
* The Protect ip.
*/
@NotNull(message = "protectIp 处置IP不能为空", groups = ValidGroups.AddDeviceValid.class)
@ValidIpSegment(message = "protectIp Ip地址格式错误", groups = ValidGroups.AddDeviceValid.class)
private String protectIp;
/**
* The Reserve netflow.
*/
@NotNull(message = "reserveNetflow 清洗储备流量不能为空", groups = ValidGroups.AddDeviceValid.class)
private Integer reserveNetflow;
}