更改了getSubTaskList的URL以适应前后端联调

master
ArgonarioD 2022-07-06 10:16:35 +08:00
parent ce02979a98
commit d7d2579aef
1 changed files with 3 additions and 3 deletions

View File

@ -26,7 +26,7 @@ public class TaskController {
private IProjectGroupService projectGroupService; private IProjectGroupService projectGroupService;
@SneakyThrows @SneakyThrows
@GetMapping("/subtask/{fatherId}") @GetMapping("/{fatherId}/subtask")
public ResponseList<Task> getSubTaskList( public ResponseList<Task> getSubTaskList(
@RequestHeader("Token") String token, @RequestHeader("Token") String token,
@PathVariable("projectId") Integer projectId, @PathVariable("projectId") Integer projectId,
@ -55,7 +55,7 @@ public class TaskController {
} }
@SneakyThrows @SneakyThrows
@PostMapping("/") @PostMapping
public ResponseMap createTask( public ResponseMap createTask(
@RequestHeader("Token") String token, @RequestHeader("Token") String token,
@PathVariable("projectId") Integer projectId, @PathVariable("projectId") Integer projectId,
@ -67,7 +67,7 @@ public class TaskController {
} }
@SneakyThrows @SneakyThrows
@PutMapping("/") @PutMapping
public ResponseMap modifyTask( public ResponseMap modifyTask(
@RequestHeader("Token") String token, @RequestHeader("Token") String token,
@PathVariable("projectId") Integer projectId, @PathVariable("projectId") Integer projectId,