Skip to content

Commit

Permalink
fix: develop 머지 충돌 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
GaBaljaintheroom committed Sep 15, 2024
2 parents 19e05b4 + 32af59e commit fb05d49
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@ public class UserShowController {
@Operation(summary = "공연 관심 등록 / 취소")
public ResponseEntity<ShowInterestApiResponse> 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()
)
)
Expand All @@ -65,10 +65,10 @@ public ResponseEntity<ShowInterestApiResponse> interest(
@Operation(summary = "공연 관심 목록 조회")
public ResponseEntity<PaginationApiResponse<InterestShowPaginationApiResponse>> getInterests(
@ParameterObject ShowInterestPaginationApiRequest request,
@AuthenticationPrincipal AuthenticatedInfo user
@AuthenticationPrincipal AuthenticatedInfo info
) {
var serviceResponse = userShowService.findInterestShows(
request.toServiceRequest(user.userId())
request.toServiceRequest(info.userId())
);

List<InterestShowPaginationApiResponse> response = serviceResponse.data().stream()
Expand All @@ -86,11 +86,11 @@ public ResponseEntity<PaginationApiResponse<InterestShowPaginationApiResponse>>
@GetMapping("/interests/count")
@Operation(summary = "관심 공연 개수")
public ResponseEntity<NumberOfInterestShowApiResponse> getNumberOfInterestShow(
@AuthenticationPrincipal AuthenticatedInfo user
@AuthenticationPrincipal AuthenticatedInfo info
) {
return ResponseEntity.ok(
NumberOfInterestShowApiResponse.from(
userShowService.countInterestShows(user.userId())
userShowService.countInterestShows(info.userId())
)
);
}
Expand Down

0 comments on commit fb05d49

Please sign in to comment.