为GroupReuse中添加service字段,为IpRegion中添加userregion字段,以支持app协议ip业务单独添加域的功能
This commit is contained in:
@@ -24,6 +24,9 @@ import com.wordnik.swagger.annotations.ApiModelProperty;
|
|||||||
public class GroupReuse implements Serializable {
|
public class GroupReuse implements Serializable {
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
// ASN-IP阻断和监测不用传service和ipregion.userRegion字段,当是app协议ip业务时需要传入ipregion.userRegion字段
|
||||||
|
@ApiModelProperty(value = "业务ID", required = true)
|
||||||
|
private Integer service;
|
||||||
|
|
||||||
@ApiModelProperty(value = "字符串域分组列表", access = "", required = true)
|
@ApiModelProperty(value = "字符串域分组列表", access = "", required = true)
|
||||||
private List<StrRegion> strRegionList;
|
private List<StrRegion> strRegionList;
|
||||||
@@ -80,4 +83,11 @@ public class GroupReuse implements Serializable {
|
|||||||
this.numRegionList = numRegionList;
|
this.numRegionList = numRegionList;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Integer getService() {
|
||||||
|
return service;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setService(Integer service) {
|
||||||
|
this.service = service;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -69,6 +69,9 @@ public class IpRegion implements Serializable {
|
|||||||
@ApiModelProperty(value = "本地更新时间 ", required = true)
|
@ApiModelProperty(value = "本地更新时间 ", required = true)
|
||||||
private Date lastUpdate;
|
private Date lastUpdate;
|
||||||
|
|
||||||
|
// 为app协议ip业务添加userregion字段,该业务的ip域需要下发到阀门中,阀门需要userregion字段,校验时需要校验当为app协议ip业务时userregion字段不能为空
|
||||||
|
@ApiModelProperty(value = "用户自定义域", required = true)
|
||||||
|
private String userRegion;
|
||||||
|
|
||||||
@JsonIgnore
|
@JsonIgnore
|
||||||
public Long getProcSeq() {
|
public Long getProcSeq() {
|
||||||
@@ -78,6 +81,7 @@ public class IpRegion implements Serializable {
|
|||||||
public void setProcSeq(Long procSeq) {
|
public void setProcSeq(Long procSeq) {
|
||||||
this.procSeq = procSeq;
|
this.procSeq = procSeq;
|
||||||
}
|
}
|
||||||
|
|
||||||
@JsonIgnore
|
@JsonIgnore
|
||||||
public Date getLastUpdate() {
|
public Date getLastUpdate() {
|
||||||
return lastUpdate;
|
return lastUpdate;
|
||||||
@@ -95,7 +99,8 @@ public class IpRegion implements Serializable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param regionId 要设置的 regionId
|
* @param regionId
|
||||||
|
* 要设置的 regionId
|
||||||
*/
|
*/
|
||||||
public void setRegionId(Long regionId) {
|
public void setRegionId(Long regionId) {
|
||||||
this.regionId = regionId;
|
this.regionId = regionId;
|
||||||
@@ -109,7 +114,8 @@ public class IpRegion implements Serializable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param groupId 要设置的 groupId
|
* @param groupId
|
||||||
|
* 要设置的 groupId
|
||||||
*/
|
*/
|
||||||
public void setGroupId(Long groupId) {
|
public void setGroupId(Long groupId) {
|
||||||
this.groupId = groupId;
|
this.groupId = groupId;
|
||||||
@@ -123,7 +129,8 @@ public class IpRegion implements Serializable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param addrType 要设置的 addrType
|
* @param addrType
|
||||||
|
* 要设置的 addrType
|
||||||
*/
|
*/
|
||||||
public void setAddrType(Integer addrType) {
|
public void setAddrType(Integer addrType) {
|
||||||
this.addrType = addrType;
|
this.addrType = addrType;
|
||||||
@@ -137,7 +144,8 @@ public class IpRegion implements Serializable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param srcIp 要设置的 srcIp
|
* @param srcIp
|
||||||
|
* 要设置的 srcIp
|
||||||
*/
|
*/
|
||||||
public void setSrcIp(String srcIp) {
|
public void setSrcIp(String srcIp) {
|
||||||
this.srcIp = srcIp;
|
this.srcIp = srcIp;
|
||||||
@@ -151,7 +159,8 @@ public class IpRegion implements Serializable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param maskSrcIp 要设置的 maskSrcIp
|
* @param maskSrcIp
|
||||||
|
* 要设置的 maskSrcIp
|
||||||
*/
|
*/
|
||||||
public void setMaskSrcIp(String maskSrcIp) {
|
public void setMaskSrcIp(String maskSrcIp) {
|
||||||
this.maskSrcIp = maskSrcIp;
|
this.maskSrcIp = maskSrcIp;
|
||||||
@@ -165,7 +174,8 @@ public class IpRegion implements Serializable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param srcPort 要设置的 srcPort
|
* @param srcPort
|
||||||
|
* 要设置的 srcPort
|
||||||
*/
|
*/
|
||||||
public void setSrcPort(String srcPort) {
|
public void setSrcPort(String srcPort) {
|
||||||
this.srcPort = srcPort;
|
this.srcPort = srcPort;
|
||||||
@@ -179,7 +189,8 @@ public class IpRegion implements Serializable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param maskSrcPort 要设置的 maskSrcPort
|
* @param maskSrcPort
|
||||||
|
* 要设置的 maskSrcPort
|
||||||
*/
|
*/
|
||||||
public void setMaskSrcPort(String maskSrcPort) {
|
public void setMaskSrcPort(String maskSrcPort) {
|
||||||
this.maskSrcPort = maskSrcPort;
|
this.maskSrcPort = maskSrcPort;
|
||||||
@@ -193,7 +204,8 @@ public class IpRegion implements Serializable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param dstIp 要设置的 dstIp
|
* @param dstIp
|
||||||
|
* 要设置的 dstIp
|
||||||
*/
|
*/
|
||||||
public void setDstIp(String dstIp) {
|
public void setDstIp(String dstIp) {
|
||||||
this.dstIp = dstIp;
|
this.dstIp = dstIp;
|
||||||
@@ -207,7 +219,8 @@ public class IpRegion implements Serializable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param maskDstIp 要设置的 maskDstIp
|
* @param maskDstIp
|
||||||
|
* 要设置的 maskDstIp
|
||||||
*/
|
*/
|
||||||
public void setMaskDstIp(String maskDstIp) {
|
public void setMaskDstIp(String maskDstIp) {
|
||||||
this.maskDstIp = maskDstIp;
|
this.maskDstIp = maskDstIp;
|
||||||
@@ -221,7 +234,8 @@ public class IpRegion implements Serializable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param dstPort 要设置的 dstPort
|
* @param dstPort
|
||||||
|
* 要设置的 dstPort
|
||||||
*/
|
*/
|
||||||
public void setDstPort(String dstPort) {
|
public void setDstPort(String dstPort) {
|
||||||
this.dstPort = dstPort;
|
this.dstPort = dstPort;
|
||||||
@@ -235,7 +249,8 @@ public class IpRegion implements Serializable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param maskDstPort 要设置的 maskDstPort
|
* @param maskDstPort
|
||||||
|
* 要设置的 maskDstPort
|
||||||
*/
|
*/
|
||||||
public void setMaskDstPort(String maskDstPort) {
|
public void setMaskDstPort(String maskDstPort) {
|
||||||
this.maskDstPort = maskDstPort;
|
this.maskDstPort = maskDstPort;
|
||||||
@@ -249,7 +264,8 @@ public class IpRegion implements Serializable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param protocol 要设置的 protocol
|
* @param protocol
|
||||||
|
* 要设置的 protocol
|
||||||
*/
|
*/
|
||||||
public void setProtocol(Integer protocol) {
|
public void setProtocol(Integer protocol) {
|
||||||
this.protocol = protocol;
|
this.protocol = protocol;
|
||||||
@@ -263,7 +279,8 @@ public class IpRegion implements Serializable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param direction 要设置的 direction
|
* @param direction
|
||||||
|
* 要设置的 direction
|
||||||
*/
|
*/
|
||||||
public void setDirection(Integer direction) {
|
public void setDirection(Integer direction) {
|
||||||
this.direction = direction;
|
this.direction = direction;
|
||||||
@@ -277,7 +294,8 @@ public class IpRegion implements Serializable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param isValid 要设置的 isValid
|
* @param isValid
|
||||||
|
* 要设置的 isValid
|
||||||
*/
|
*/
|
||||||
public void setIsValid(Integer isValid) {
|
public void setIsValid(Integer isValid) {
|
||||||
this.isValid = isValid;
|
this.isValid = isValid;
|
||||||
@@ -291,7 +309,8 @@ public class IpRegion implements Serializable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param opTime 要设置的 opTime
|
* @param opTime
|
||||||
|
* 要设置的 opTime
|
||||||
*/
|
*/
|
||||||
public void setOpTime(Date opTime) {
|
public void setOpTime(Date opTime) {
|
||||||
this.opTime = opTime;
|
this.opTime = opTime;
|
||||||
@@ -305,9 +324,12 @@ public class IpRegion implements Serializable {
|
|||||||
this.tableName = tableName;
|
this.tableName = tableName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getUserRegion() {
|
||||||
|
return userRegion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUserRegion(String userRegion) {
|
||||||
|
this.userRegion = userRegion;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user