增加存在子任务判断的controller
parent
83d95b1227
commit
0417ba1bda
|
@ -44,8 +44,8 @@ public class TaskController {
|
||||||
}
|
}
|
||||||
|
|
||||||
@SneakyThrows
|
@SneakyThrows
|
||||||
@PostMapping("/subtask/exist")
|
@GetMapping("/subtask/exist")
|
||||||
public ResponseMap createTask(
|
public ResponseMap existSubTask(
|
||||||
@RequestHeader("Token") String token,
|
@RequestHeader("Token") String token,
|
||||||
@PathVariable("projectId") Integer projectId,
|
@PathVariable("projectId") Integer projectId,
|
||||||
@RequestParam("taskId") Long taskId
|
@RequestParam("taskId") Long taskId
|
||||||
|
@ -54,4 +54,14 @@ public class TaskController {
|
||||||
.put("existSubTask" ,taskService.existSubTask(token, projectId, taskId));
|
.put("existSubTask" ,taskService.existSubTask(token, projectId, taskId));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SneakyThrows
|
||||||
|
@DeleteMapping
|
||||||
|
public ResponseMap deleteTaskAndSubTask(
|
||||||
|
@RequestHeader("Token") String token,
|
||||||
|
@PathVariable("projectId") Integer projectId,
|
||||||
|
@RequestParam("taskId") Long taskId
|
||||||
|
) {
|
||||||
|
return ResponseMap.ofSuccess("删除成功");
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue