1. 添加CorsFilter以支持localhost:8000的跨域请求

2. 添加DynamicTaskInfo实体类以用于处理BW系统的body
3. 新添加动态规则生成方法
This commit is contained in:
EnderByEndera
2024-01-17 19:07:04 +08:00
parent 7112e85a26
commit 0ab46a51f1
9 changed files with 159 additions and 12 deletions

View File

@@ -1,5 +1,6 @@
package com.realtime.protection.server.task;
import com.realtime.protection.configuration.entity.task.DynamicTaskInfo;
import com.realtime.protection.configuration.entity.task.Task;
import com.realtime.protection.configuration.entity.task.TaskCommandInfo;
import org.apache.ibatis.annotations.Mapper;
@@ -40,6 +41,8 @@ public interface TaskMapper {
List<TaskCommandInfo> getStaticCommandInfos(@Param("task_id") Long taskId);
List<DynamicTaskInfo> getDynamicTaskInfos(@Param("task_id") Long taskId);
Integer queryTaskAuditStatus(@Param("task_id") Long taskId);
Integer queryTaskStatus(@Param("task_id") Long taskId);