1、修改策略模板的isFullFlow和isProtectObjectIPSrc为isProtectObjectDst和isProtectObjectSrc。并做其他相应修改
2、动态规则分页查询增加返回策略模板名称
This commit is contained in:
@@ -34,4 +34,10 @@ public class ProtectLevel {
|
||||
|
||||
@Schema(description = "该防护等级防护对象ip地址是否作为源ip地址")
|
||||
private Boolean isProtectObjectIPSrc = false;
|
||||
|
||||
@Schema(description = "该防护等级防护对象ip地址是否作为目的地址")
|
||||
private Boolean isProtectObjectDst = false;
|
||||
@Schema(description = "该防护等级防护对象ip地址是否作为源地址")
|
||||
private Boolean isProtectObjectSrc = false;
|
||||
|
||||
}
|
||||
|
||||
@@ -60,11 +60,17 @@ public class TemplateNew {
|
||||
@Schema(description = "该防护等级是否需要提取DNS")
|
||||
private Boolean hasDNS = false;
|
||||
|
||||
@Schema(description = "该防护等级是处置防护对象的全流量or单向流量")
|
||||
private Boolean isFullFlow = false;
|
||||
// @Schema(description = "该防护等级防护对象ip地址是否作为目的地址")
|
||||
// private Boolean isFullFlow = false;
|
||||
//
|
||||
// @Schema(description = "该防护等级防护对象ip地址是否作为源地址")
|
||||
// private Boolean isProtectObjectIPSrc = false;
|
||||
|
||||
@Schema(description = "该防护等级防护对象ip地址是否作为源ip地址")
|
||||
private Boolean isProtectObjectIPSrc = false;
|
||||
@Schema(description = "该防护等级防护对象ip地址是否作为目的地址")
|
||||
private Boolean isProtectObjectDst = false;
|
||||
|
||||
@Schema(description = "该防护等级防护对象ip地址是否作为源地址")
|
||||
private Boolean isProtectObjectSrc = false;
|
||||
|
||||
@JsonProperty("template_used_times")
|
||||
@Schema(description = "防御策略模板使用次数", example = "20", accessMode = Schema.AccessMode.READ_ONLY)
|
||||
|
||||
@@ -56,6 +56,10 @@ public class DynamicRuleObject {
|
||||
@Schema(description = "响应时回复防护对象完整信息", accessMode = Schema.AccessMode.READ_ONLY)
|
||||
private List<ProtectObject> protectObjects;
|
||||
|
||||
@JsonProperty("strategy_template_name")
|
||||
@Schema(description = "动态规则选择的策略模板", accessMode = Schema.AccessMode.READ_ONLY)
|
||||
private String templateName;
|
||||
|
||||
|
||||
//还没有建立外键
|
||||
@JsonProperty("dynamic_rule_create_user_id")
|
||||
|
||||
Reference in New Issue
Block a user