欺骗ip配置添加、删除(与转换层通信)
This commit is contained in:
@@ -10,6 +10,7 @@ package com.nis.domain.configuration;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import com.google.gson.annotations.Expose;
|
||||
import com.nis.domain.BaseEntity;
|
||||
import com.nis.domain.SysUser;
|
||||
|
||||
@@ -25,6 +26,7 @@ public class DnsIpCfg extends BaseEntity<DnsIpCfg> {
|
||||
/**
|
||||
* 配置ID
|
||||
*/
|
||||
@Expose
|
||||
private Long cfgId;
|
||||
/**
|
||||
* 配置描述
|
||||
@@ -33,46 +35,57 @@ public class DnsIpCfg extends BaseEntity<DnsIpCfg> {
|
||||
/**
|
||||
* ip类型
|
||||
*/
|
||||
@Expose
|
||||
private Integer ipType;
|
||||
/**
|
||||
* 源IP地址
|
||||
*/
|
||||
@Expose
|
||||
private String srcIp;
|
||||
/**
|
||||
* 源地址掩码
|
||||
*/
|
||||
@Expose
|
||||
private String srcIpMask ;
|
||||
/**
|
||||
* 源端口
|
||||
*/
|
||||
@Expose
|
||||
private String srcPort ;
|
||||
/**
|
||||
* 源端口掩码
|
||||
*/
|
||||
@Expose
|
||||
private String srcPortMask ;
|
||||
/**
|
||||
* 目的IP地址
|
||||
*/
|
||||
@Expose
|
||||
private String dstIp ;
|
||||
/**
|
||||
* 目的地址掩码
|
||||
*/
|
||||
@Expose
|
||||
private String dstIpMask ;
|
||||
/**
|
||||
* 目的端口
|
||||
*/
|
||||
@Expose
|
||||
private String dstPort ;
|
||||
/**
|
||||
* 目的端口掩码
|
||||
*/
|
||||
@Expose
|
||||
private String dstPortMask ;
|
||||
/**
|
||||
* 方向
|
||||
*/
|
||||
@Expose
|
||||
private Integer direction ;
|
||||
/**
|
||||
* 方向
|
||||
*/
|
||||
@Expose
|
||||
private Integer protocol ;
|
||||
/**
|
||||
* 有效标识
|
||||
|
||||
24
src/main/java/com/nis/domain/maat/DnsIpRecvData.java
Normal file
24
src/main/java/com/nis/domain/maat/DnsIpRecvData.java
Normal file
@@ -0,0 +1,24 @@
|
||||
package com.nis.domain.maat;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class DnsIpRecvData implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -3438469380427993582L;
|
||||
|
||||
private Long cfgId;
|
||||
private Integer fakeId;
|
||||
|
||||
public Long getCfgId() {
|
||||
return cfgId;
|
||||
}
|
||||
public void setCfgId(Long cfgId) {
|
||||
this.cfgId = cfgId;
|
||||
}
|
||||
public Integer getFakeId() {
|
||||
return fakeId;
|
||||
}
|
||||
public void setFakeId(Integer fakeId) {
|
||||
this.fakeId = fakeId;
|
||||
}
|
||||
}
|
||||
20
src/main/java/com/nis/domain/maat/FromMaatBean.java
Normal file
20
src/main/java/com/nis/domain/maat/FromMaatBean.java
Normal file
@@ -0,0 +1,20 @@
|
||||
package com.nis.domain.maat;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
public class FromMaatBean implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1277140754421705676L;
|
||||
|
||||
private List<DnsIpRecvData> data;
|
||||
|
||||
public List<DnsIpRecvData> getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
public void setData(List<DnsIpRecvData> data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
}
|
||||
24
src/main/java/com/nis/domain/maat/MaatDnsIpCfg.java
Normal file
24
src/main/java/com/nis/domain/maat/MaatDnsIpCfg.java
Normal file
@@ -0,0 +1,24 @@
|
||||
package com.nis.domain.maat;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
import com.google.gson.annotations.Expose;
|
||||
import com.nis.domain.configuration.DnsIpCfg;
|
||||
|
||||
public class MaatDnsIpCfg implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 2407058503197501569L;
|
||||
|
||||
@Expose
|
||||
private List<DnsIpCfg> ipCfg;
|
||||
|
||||
public List<DnsIpCfg> getIpCfg() {
|
||||
return ipCfg;
|
||||
}
|
||||
|
||||
public void setIpCfg(List<DnsIpCfg> ipCfg) {
|
||||
this.ipCfg = ipCfg;
|
||||
}
|
||||
|
||||
}
|
||||
62
src/main/java/com/nis/domain/maat/ToMaatDnsIpBean.java
Normal file
62
src/main/java/com/nis/domain/maat/ToMaatDnsIpBean.java
Normal file
@@ -0,0 +1,62 @@
|
||||
package com.nis.domain.maat;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
import com.google.gson.annotations.Expose;
|
||||
|
||||
public class ToMaatDnsIpBean implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 5124353996884030213L;
|
||||
|
||||
@Expose
|
||||
private List<MaatDnsIpCfg> serviceCfg;
|
||||
@Expose
|
||||
private String attribute;
|
||||
@Expose
|
||||
private String classify;
|
||||
@Expose
|
||||
private Integer isValid;
|
||||
@Expose
|
||||
private String lable;
|
||||
@Expose
|
||||
private Integer requestId;
|
||||
|
||||
public List<MaatDnsIpCfg> getServiceCfg() {
|
||||
return serviceCfg;
|
||||
}
|
||||
public void setServiceCfg(List<MaatDnsIpCfg> serviceCfg) {
|
||||
this.serviceCfg = serviceCfg;
|
||||
}
|
||||
public String getAttribute() {
|
||||
return attribute;
|
||||
}
|
||||
public void setAttribute(String attribute) {
|
||||
this.attribute = attribute;
|
||||
}
|
||||
public String getClassify() {
|
||||
return classify;
|
||||
}
|
||||
public void setClassify(String classify) {
|
||||
this.classify = classify;
|
||||
}
|
||||
public Integer getIsValid() {
|
||||
return isValid;
|
||||
}
|
||||
public void setIsValid(Integer isValid) {
|
||||
this.isValid = isValid;
|
||||
}
|
||||
public String getLable() {
|
||||
return lable;
|
||||
}
|
||||
public void setLable(String lable) {
|
||||
this.lable = lable;
|
||||
}
|
||||
public Integer getRequestId() {
|
||||
return requestId;
|
||||
}
|
||||
public void setRequestId(Integer requestId) {
|
||||
this.requestId = requestId;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user