Skip to content

Commit

Permalink
๐Ÿ“ฆ [Chore] ์ž„์‹œ์ ์œผ๋กœ API ์ ‘๊ทผ์ž ์œ ์ € ID๋ฅผ 100์œผ๋กœ ํ†ต์ผ
Browse files Browse the repository at this point in the history
  • Loading branch information
soochangoforit authored Jul 7, 2023
1 parent ea14dfc commit 45a94b7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public class DrinkController {
@ApiResponses(@ApiResponse(responseCode = "200", description = "์œ ์ €๊ฐ€ ํ•˜๋ฃจ ๋จน์€ ๋‹น ํ†ต๊ณ„ ์กฐํšŒ."))
@GetMapping("/statistics/daily")
public ResponseEntity<DataResponse<DrinkDailySugarStatisticsResponse>> retrieveUserDailySugarStatistics() {
final DrinkDailySugarStatisticsResponse response = drinkDailyStatisticsService.retrieveUserDailySugarStatistics(1L);
final DrinkDailySugarStatisticsResponse response = drinkDailyStatisticsService.retrieveUserDailySugarStatistics(100L);
return ResponseEntity.ok()
.body(DataResponse.of(HttpStatus.OK, "์œ ์ €๊ฐ€ ํ•˜๋ฃจ ๋จน์€ ๋‹น ํ†ต๊ณ„ ์กฐํšŒ ์„ฑ๊ณต", response));
}
Expand All @@ -52,7 +52,7 @@ public ResponseEntity<DataResponse<DrinkDailySugarStatisticsResponse>> retrieveU
public ResponseEntity<DataResponse<DrinkWeeklySugarStatisticsResponse>> retrieveUserWeeklySugarStatistics(
@RequestBody @Valid final DrinkWeeklySugarDateRequest request
) {
final DrinkWeeklySugarStatisticsResponse response = drinkWeeklyStatisticsService.retrieveUserWeeklySugarStatistics(1L, request);
final DrinkWeeklySugarStatisticsResponse response = drinkWeeklyStatisticsService.retrieveUserWeeklySugarStatistics(100L, request);
return ResponseEntity.ok()
.body(DataResponse.of(HttpStatus.OK, "์œ ์ €๊ฐ€ ๋จน์€ ์ฃผ๊ฐ„ ๋‹น ํ†ต๊ณ„ ์กฐํšŒ ์„ฑ๊ณต", response));
}
Expand Down

0 comments on commit 45a94b7

Please sign in to comment.