Skip to content

Commit

Permalink
Merge pull request #39 from potenday-project/feat/#38
Browse files Browse the repository at this point in the history
feat(TODO): edit parameter type of todo/check method Long -> Map #38
cyzlcyzl authored Dec 16, 2023
2 parents 2ae2c25 + bd591cd commit 7a114ed
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -11,6 +11,7 @@
import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
import java.util.List;
import java.util.Map;

@Slf4j
@RestController
@@ -36,7 +37,9 @@ public ResponseEntity<String> editTodo(@RequestBody TodoRequestDTO todoRequestDT
}

@PostMapping("/check")
public ResponseEntity<String> checkTodo(@RequestBody Long todoId){
public ResponseEntity<String> checkTodo(@RequestBody Map<String, Object> requestBody){
Integer tmp = (Integer) requestBody.get("todoId");
Long todoId = Long.valueOf(tmp);
return ResponseEntity.ok(todoService.check(todoId));
}
}

0 comments on commit 7a114ed

Please sign in to comment.