1、策略模板增查新增isProtectObject属性
This commit is contained in:
@@ -31,4 +31,7 @@ public class ProtectLevel {
|
|||||||
|
|
||||||
@Schema(description = "该防护等级是处置防护对象的全流量or单向流量")
|
@Schema(description = "该防护等级是处置防护对象的全流量or单向流量")
|
||||||
private Boolean isFullFlow = false;
|
private Boolean isFullFlow = false;
|
||||||
|
|
||||||
|
@Schema(description = "该防护等级防护对象ip地址是否作为源ip地址")
|
||||||
|
private Boolean isProtectObjectIPSrc = false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -174,6 +174,9 @@ public class TemplateController implements TemplateControllerApi {
|
|||||||
.setData("success", templateService.updateAuditStatusBatch(idsWithAuditStatusMap));
|
.setData("success", templateService.updateAuditStatusBatch(idsWithAuditStatusMap));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
修改审批信息
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
@PostMapping("/auditInfo/{ids}")
|
@PostMapping("/auditInfo/{ids}")
|
||||||
public ResponseResult updateAuditInfo(@PathVariable List<Integer> ids,
|
public ResponseResult updateAuditInfo(@PathVariable List<Integer> ids,
|
||||||
|
|||||||
@@ -48,7 +48,10 @@ public interface TemplateControllerApi {
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
requestBody = @io.swagger.v3.oas.annotations.parameters.RequestBody(description = "防御策略模板信息")
|
requestBody = @io.swagger.v3.oas.annotations.parameters.RequestBody(
|
||||||
|
|
||||||
|
description = "防御策略模板信息")
|
||||||
|
|
||||||
)
|
)
|
||||||
ResponseResult newTemplate(@RequestBody @Valid Template template);
|
ResponseResult newTemplate(@RequestBody @Valid Template template);
|
||||||
|
|
||||||
|
|||||||
@@ -20,10 +20,10 @@
|
|||||||
<insert id="newProtectLevel" useGeneratedKeys="true" keyProperty="protectLevelId">
|
<insert id="newProtectLevel" useGeneratedKeys="true" keyProperty="protectLevelId">
|
||||||
INSERT INTO t_protect_level(has_protect_object_ip, has_protect_object_port,
|
INSERT INTO t_protect_level(has_protect_object_ip, has_protect_object_port,
|
||||||
has_protocol, has_url, has_dns,
|
has_protocol, has_url, has_dns,
|
||||||
has_peer_ip, has_peer_port, is_full_flow)
|
has_peer_ip, has_peer_port, is_full_flow, is_protect_object_dst)
|
||||||
VALUE (#{level.hasProtectObjectIP}, #{level.hasProtectObjectPort},
|
VALUE (#{level.hasProtectObjectIP}, #{level.hasProtectObjectPort},
|
||||||
#{level.hasProtocol}, #{level.hasURL}, #{level.hasDNS},
|
#{level.hasProtocol}, #{level.hasURL}, #{level.hasDNS},
|
||||||
#{level.hasPeerIP}, #{level.hasPeerPort}, #{level.isFullFlow})
|
#{level.hasPeerIP}, #{level.hasPeerPort}, #{level.isFullFlow}, #{level.isProtectObjectDst})
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
<resultMap id="templateMap" type="com.realtime.protection.configuration.entity.defense.template.Template">
|
<resultMap id="templateMap" type="com.realtime.protection.configuration.entity.defense.template.Template">
|
||||||
@@ -51,6 +51,7 @@
|
|||||||
<result column="low_has_url" property="hasURL"/>
|
<result column="low_has_url" property="hasURL"/>
|
||||||
<result column="low_has_dns" property="hasDNS"/>
|
<result column="low_has_dns" property="hasDNS"/>
|
||||||
<result column="low_is_full_flow" property="isFullFlow"/>
|
<result column="low_is_full_flow" property="isFullFlow"/>
|
||||||
|
<result column="low_is_protect_object_src" property="isProtectObjectIPSrc"/>
|
||||||
</association>
|
</association>
|
||||||
|
|
||||||
<association property="protectLevelMedium"
|
<association property="protectLevelMedium"
|
||||||
@@ -64,6 +65,7 @@
|
|||||||
<result column="medium_has_url" property="hasURL"/>
|
<result column="medium_has_url" property="hasURL"/>
|
||||||
<result column="medium_has_dns" property="hasDNS"/>
|
<result column="medium_has_dns" property="hasDNS"/>
|
||||||
<result column="medium_is_full_flow" property="isFullFlow"/>
|
<result column="medium_is_full_flow" property="isFullFlow"/>
|
||||||
|
<result column="medium_is_protect_object_src" property="isProtectObjectIPSrc"/>
|
||||||
</association>
|
</association>
|
||||||
|
|
||||||
<association property="protectLevelHigh"
|
<association property="protectLevelHigh"
|
||||||
@@ -78,6 +80,7 @@
|
|||||||
<result column="high_has_url" property="hasURL"/>
|
<result column="high_has_url" property="hasURL"/>
|
||||||
<result column="high_has_dns" property="hasDNS"/>
|
<result column="high_has_dns" property="hasDNS"/>
|
||||||
<result column="high_is_full_flow" property="isFullFlow"/>
|
<result column="high_is_full_flow" property="isFullFlow"/>
|
||||||
|
<result column="high_is_protect_object_src" property="isProtectObjectIPSrc"/>
|
||||||
</association>
|
</association>
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
@@ -91,6 +94,7 @@
|
|||||||
<result column="has_url" property="hasURL"/>
|
<result column="has_url" property="hasURL"/>
|
||||||
<result column="has_dns" property="hasDNS"/>
|
<result column="has_dns" property="hasDNS"/>
|
||||||
<result column="is_full_flow" property="isFullFlow"/>
|
<result column="is_full_flow" property="isFullFlow"/>
|
||||||
|
<result column="is_protect_object_src" property="isProtectObjectIPSrc"/>
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<select id="queryTemplates" resultMap="templateMap">
|
<select id="queryTemplates" resultMap="templateMap">
|
||||||
|
|||||||
Reference in New Issue
Block a user