File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/main/java/Spring/MindStone/web/controller Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 11package Spring .MindStone .web .controller ;
22
3+ import Spring .MindStone .apiPayload .ApiResponse ;
34import Spring .MindStone .service .habitService .HabitCalendarService ;
45import Spring .MindStone .web .dto .habitCalendarDto .HabitCalendarResponseDto ;
56import Spring .MindStone .config .jwt .JwtTokenUtil ;
@@ -20,12 +21,12 @@ public class HabitCalendarController {
2021
2122 @ Operation (summary = "습관 달력 조회 API" , description = "사용자의 특정 년/월 습관 기록 데이터를 조회합니다." )
2223 @ GetMapping
23- public ResponseEntity <HabitCalendarResponseDto > getCalendarData (
24+ public ApiResponse <HabitCalendarResponseDto > getCalendarData (
2425 @ RequestHeader ("Authorization" ) String authorization ,
2526 @ RequestParam int year ,
2627 @ RequestParam int month ) {
2728
2829 Long memberId = JwtTokenUtil .extractMemberId (authorization );
29- return ResponseEntity . ok (habitCalendarService .getCalendarData (memberId , year , month ));
30+ return ApiResponse . onSuccess (habitCalendarService .getCalendarData (memberId , year , month ));
3031 }
3132}
You can’t perform that action at this time.
0 commit comments