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

@@ -122,7 +122,7 @@ public class TaskController implements TaskControllerApi {
@Override
@GetMapping("/{taskId}/running/{stateNum}")
public ResponseResult changeTaskStatus(@PathVariable @NotNull @Min(0) @Max(6) Integer stateNum,
@PathVariable @NotNull Long taskId) throws DorisStartException {
@PathVariable @NotNull @Min(1) Long taskId) throws DorisStartException {
return ResponseResult.ok()
.setData("task_id", taskId)
// 外部修改状态,需要进行状态检查