From 2dff71aa93259bafea5e7623150856132bcfea8d Mon Sep 17 00:00:00 2001 From: soHyn Date: Fri, 12 Jan 2024 17:39:26 +0900 Subject: [PATCH] =?UTF-8?q?refactor=20:=20subgoal=EC=9D=98=20doneDates=20?= =?UTF-8?q?=EC=88=98=EC=A0=95=20=EA=B5=AC=ED=98=84=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../blooming/domain/subgoal/controller/SubgoalController.java | 4 ---- .../tenten/blooming/domain/subgoal/dto/SubgoalResponse.java | 3 +-- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/main/java/tenten/blooming/domain/subgoal/controller/SubgoalController.java b/src/main/java/tenten/blooming/domain/subgoal/controller/SubgoalController.java index 41726ce..84d1d96 100644 --- a/src/main/java/tenten/blooming/domain/subgoal/controller/SubgoalController.java +++ b/src/main/java/tenten/blooming/domain/subgoal/controller/SubgoalController.java @@ -24,11 +24,7 @@ public class SubgoalController { public ResponseEntity> updateSubgoal( @PathVariable("goalId") Long goalId, @PathVariable("subgoalId") Long subgoalId -// ,@RequestBody @Validated UpdateSubgoalRequest request ) { -// Goal goal = goalRepository.findById(goalId).orElse(null); -// goal.getSubgoals(); - List doneDates = subgoalService.updateSubgoal(subgoalId); return ResponseEntity.ok(doneDates); diff --git a/src/main/java/tenten/blooming/domain/subgoal/dto/SubgoalResponse.java b/src/main/java/tenten/blooming/domain/subgoal/dto/SubgoalResponse.java index fe2c510..84bef9e 100644 --- a/src/main/java/tenten/blooming/domain/subgoal/dto/SubgoalResponse.java +++ b/src/main/java/tenten/blooming/domain/subgoal/dto/SubgoalResponse.java @@ -20,9 +20,8 @@ public class SubgoalResponse { @Data @NoArgsConstructor public static class SubgoalInfo { - private Long subgoalId; private String subgoalName; - private List doneDates; + private List doneDateList; } }