Skip to content

Commit 1db7705

Browse files
committed
Merge remote-tracking branch 'origin/develop' into develop
2 parents 9517903 + 22fe612 commit 1db7705

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/Spring/MindStone/web/controller/HabitCalendarController.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package Spring.MindStone.web.controller;
22

3+
import Spring.MindStone.apiPayload.ApiResponse;
34
import Spring.MindStone.service.habitService.HabitCalendarService;
45
import Spring.MindStone.web.dto.habitCalendarDto.HabitCalendarResponseDto;
56
import 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
}

0 commit comments

Comments
 (0)