1. 新增数据源oracle,已在application.yml中配置
2. 新增任务状态类,未来将在切换任务状态中使用 3. 新增ProtectLevel实体类,用来存储Template对应的三种防护等级数据 4. Task实体类中删除protectObjectIds,因为MySQL表结构发生修改 5. TaskController新增audit和delete路由,用以审核和删除Task 6. TemplateMapper新增newProtectLevel方法 7.
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
package com.realtime.protection.configuration.entity.defense.template;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class ProtectLevel {
|
||||
private Integer protectLevelId;
|
||||
|
||||
private Boolean hasProtectObjectIP = false;
|
||||
|
||||
private Boolean hasProtectObjectPort = false;
|
||||
|
||||
private Boolean hasPeerIP = false;
|
||||
|
||||
private Boolean hasPeerPort = false;
|
||||
|
||||
private Boolean hasProtocol = false;
|
||||
|
||||
private Boolean hasURL = false;
|
||||
|
||||
private Boolean hasDNS = false;
|
||||
}
|
||||
@@ -15,30 +15,31 @@ public class Template {
|
||||
@NotNull(message = "template name should not be empty.")
|
||||
private String templateName;
|
||||
|
||||
@JsonProperty("template_elements")
|
||||
private List<String> templateElements;
|
||||
|
||||
@JsonProperty("default_op")
|
||||
@NotNull(message = "default_op should not be empty.")
|
||||
private String defaultOp;
|
||||
|
||||
@JsonProperty("template_running_tasks")
|
||||
private Integer templateRunningTasks;
|
||||
|
||||
@JsonProperty("template_used")
|
||||
private Integer templateUsedTimes;
|
||||
|
||||
private Boolean hasProtectObjectIP;
|
||||
@JsonProperty("source_system")
|
||||
@NotNull(message = "source_system should not be empty. ")
|
||||
private String sourceSystem;
|
||||
|
||||
private Boolean hasProtectObjectPort;
|
||||
@JsonProperty("protect_level_low")
|
||||
@NotNull(message = "protect_level_low should not be empty. ")
|
||||
private ProtectLevel protectLevelLow;
|
||||
|
||||
private Boolean hasPeerIP;
|
||||
@JsonProperty("protect_level_medium")
|
||||
@NotNull(message = "protect_level_medium should not be empty. ")
|
||||
private ProtectLevel protectLevelMedium;
|
||||
|
||||
private Boolean hasPeerPort;
|
||||
@JsonProperty("protect_level_high")
|
||||
@NotNull(message = "protect_level_high should not be empty. ")
|
||||
private ProtectLevel protectLevelHigh;
|
||||
|
||||
private Boolean hasProtocol;
|
||||
private Integer createUserId;
|
||||
|
||||
private Boolean hasURL;
|
||||
private String createUsername;
|
||||
|
||||
private Boolean hasDNS;
|
||||
private String createDepart;
|
||||
}
|
||||
|
||||
@@ -55,9 +55,6 @@ public class Task {
|
||||
@JsonProperty("dynamic_rule_ids")
|
||||
private List<Integer> dynamicRuleIds;
|
||||
|
||||
@JsonProperty("protect_object_ids")
|
||||
private List<Integer> protectObjectIds;
|
||||
|
||||
@JsonProperty("task_status")
|
||||
private Integer taskStatus;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user