增加存在子任务判断的controller
parent
83d95b1227
commit
0417ba1bda
|
@ -44,8 +44,8 @@ public class TaskController {
|
|||
}
|
||||
|
||||
@SneakyThrows
|
||||
@PostMapping("/subtask/exist")
|
||||
public ResponseMap createTask(
|
||||
@GetMapping("/subtask/exist")
|
||||
public ResponseMap existSubTask(
|
||||
@RequestHeader("Token") String token,
|
||||
@PathVariable("projectId") Integer projectId,
|
||||
@RequestParam("taskId") Long taskId
|
||||
|
@ -54,4 +54,14 @@ public class TaskController {
|
|||
.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