2018-10-15 10:14:01 +08:00
|
|
|
|
/**
|
|
|
|
|
|
*@Title: BaseStringConfig.java
|
|
|
|
|
|
*@Package com.nis.domain.restful
|
|
|
|
|
|
*@Description TODO
|
|
|
|
|
|
*@author dell
|
|
|
|
|
|
*@date 2018年2月5日 下午5:26:02
|
|
|
|
|
|
*@version 版本号
|
|
|
|
|
|
*/
|
|
|
|
|
|
package com.nis.domain.configuration.template;
|
|
|
|
|
|
|
2018-10-17 10:06:08 +08:00
|
|
|
|
import com.google.gson.JsonObject;
|
2018-10-15 10:14:01 +08:00
|
|
|
|
import com.nis.util.excel.ExcelField;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* @Description: excel导入IP类配置
|
|
|
|
|
|
*/
|
2018-11-11 19:36:53 +08:00
|
|
|
|
public class IpAllTemplate extends BasicTemplate{
|
2018-10-15 10:14:01 +08:00
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* @Fields serialVersionUID:TODO(用一句话描述这个变量表示什么)
|
|
|
|
|
|
*
|
|
|
|
|
|
* @since 1.0.0
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private String cfgDesc;
|
|
|
|
|
|
private String srcIpAddress;
|
|
|
|
|
|
private String destIpAddress;
|
|
|
|
|
|
private String srcPort;
|
|
|
|
|
|
private String destPort;
|
|
|
|
|
|
private Integer protocol;
|
|
|
|
|
|
private Integer direction;
|
2019-01-13 14:51:23 +08:00
|
|
|
|
private Integer doLog;
|
2018-10-15 10:14:01 +08:00
|
|
|
|
|
|
|
|
|
|
@ExcelField(title="config_describe",align=2,sort=1)
|
|
|
|
|
|
public String getCfgDesc() {
|
|
|
|
|
|
return cfgDesc;
|
|
|
|
|
|
}
|
|
|
|
|
|
public void setCfgDesc(String cfgDesc) {
|
|
|
|
|
|
this.cfgDesc = cfgDesc;
|
|
|
|
|
|
}
|
2018-10-17 10:06:08 +08:00
|
|
|
|
@ExcelField(title="client_ip",align=2,sort=11)
|
2018-10-15 10:14:01 +08:00
|
|
|
|
public String getSrcIpAddress() {
|
|
|
|
|
|
return srcIpAddress;
|
|
|
|
|
|
}
|
|
|
|
|
|
public void setSrcIpAddress(String srcIpAddress) {
|
|
|
|
|
|
this.srcIpAddress = srcIpAddress;
|
|
|
|
|
|
}
|
2018-10-17 10:06:08 +08:00
|
|
|
|
@ExcelField(title="server_ip",align=2,sort=12)
|
2018-10-15 10:14:01 +08:00
|
|
|
|
public String getDestIpAddress() {
|
|
|
|
|
|
return destIpAddress;
|
|
|
|
|
|
}
|
|
|
|
|
|
public void setDestIpAddress(String destIpAddress) {
|
|
|
|
|
|
this.destIpAddress = destIpAddress;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2018-10-17 10:06:08 +08:00
|
|
|
|
@ExcelField(title="client_port",align=2,sort=13)
|
2018-10-15 10:14:01 +08:00
|
|
|
|
public String getSrcPort() {
|
|
|
|
|
|
return srcPort;
|
|
|
|
|
|
}
|
|
|
|
|
|
public void setSrcPort(String srcPort) {
|
|
|
|
|
|
this.srcPort = srcPort;
|
|
|
|
|
|
}
|
2018-10-17 10:06:08 +08:00
|
|
|
|
@ExcelField(title="server_port",align=2,sort=14)
|
2018-10-15 10:14:01 +08:00
|
|
|
|
public String getDestPort() {
|
|
|
|
|
|
return destPort;
|
|
|
|
|
|
}
|
|
|
|
|
|
public void setDestPort(String destPort) {
|
|
|
|
|
|
this.destPort = destPort;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2018-10-17 10:06:08 +08:00
|
|
|
|
@ExcelField(title="protocol",align=2,sort=15)
|
2018-10-15 10:14:01 +08:00
|
|
|
|
public Integer getProtocol() {
|
|
|
|
|
|
return protocol;
|
|
|
|
|
|
}
|
|
|
|
|
|
public void setProtocol(Integer protocol) {
|
|
|
|
|
|
this.protocol = protocol;
|
|
|
|
|
|
}
|
2018-10-17 10:06:08 +08:00
|
|
|
|
@ExcelField(title="direction",align=2,sort=16)
|
2018-10-15 10:14:01 +08:00
|
|
|
|
public Integer getDirection() {
|
|
|
|
|
|
return direction;
|
|
|
|
|
|
}
|
|
|
|
|
|
public void setDirection(Integer direction) {
|
|
|
|
|
|
this.direction = direction;
|
|
|
|
|
|
}
|
2018-10-17 10:06:08 +08:00
|
|
|
|
|
2019-01-13 14:51:23 +08:00
|
|
|
|
@ExcelField(title="do_log",dictType="DO_LOG",align=2,sort=2)
|
|
|
|
|
|
public Integer getDoLog() {
|
|
|
|
|
|
return doLog;
|
|
|
|
|
|
}
|
|
|
|
|
|
public void setDoLog(Integer doLog) {
|
|
|
|
|
|
this.doLog = doLog;
|
|
|
|
|
|
}
|
2018-10-15 10:14:01 +08:00
|
|
|
|
}
|