diff --git a/app/api/show-api/src/main/java/com/example/show/controller/UserShowController.java b/app/api/show-api/src/main/java/com/example/show/controller/UserShowController.java index 535cca71..1d4ac6c3 100644 --- a/app/api/show-api/src/main/java/com/example/show/controller/UserShowController.java +++ b/app/api/show-api/src/main/java/com/example/show/controller/UserShowController.java @@ -47,14 +47,14 @@ public class UserShowController { @Operation(summary = "공연 관심 등록 / 취소") public ResponseEntity interest( @PathVariable("showId") UUID showId, - @AuthenticationPrincipal AuthenticatedInfo user + @AuthenticationPrincipal AuthenticatedInfo info ) { return ResponseEntity.ok( ShowInterestApiResponse.from( userShowService.interest( ShowInterestServiceRequest.builder() .showId(showId) - .userId(user.userId()) + .userId(info.userId()) .build() ) ) @@ -65,10 +65,10 @@ public ResponseEntity interest( @Operation(summary = "공연 관심 목록 조회") public ResponseEntity> getInterests( @ParameterObject ShowInterestPaginationApiRequest request, - @AuthenticationPrincipal AuthenticatedInfo user + @AuthenticationPrincipal AuthenticatedInfo info ) { var serviceResponse = userShowService.findInterestShows( - request.toServiceRequest(user.userId()) + request.toServiceRequest(info.userId()) ); List response = serviceResponse.data().stream() @@ -86,11 +86,11 @@ public ResponseEntity> @GetMapping("/interests/count") @Operation(summary = "관심 공연 개수") public ResponseEntity getNumberOfInterestShow( - @AuthenticationPrincipal AuthenticatedInfo user + @AuthenticationPrincipal AuthenticatedInfo info ) { return ResponseEntity.ok( NumberOfInterestShowApiResponse.from( - userShowService.countInterestShows(user.userId()) + userShowService.countInterestShows(info.userId()) ) ); }