Skip to content

Commit

Permalink
[hotfix] merge 후 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
elive7 committed Jul 16, 2024
1 parent e198cdb commit 3677004
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.responses.ApiResponse;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.recordy.server.auth.security.UserId;
import org.recordy.server.common.dto.response.CursorBasePaginatedResponse;
import org.recordy.server.common.dto.response.PaginatedResponse;
import org.recordy.server.auth.security.resolver.UserId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public ResponseEntity<CursorBasePaginatedResponse<RecordInfoWithBookmark>> getRe

return ResponseEntity
.ok().
body(CursorBasePaginatedResponse.of(RecordInfoWithBookmark.of(records, bookmarks),recordInfoWithBookmark -> recordInfoWithBookmark.recordInfo().id()));
body(CursorBasePaginatedResponse.of(RecordInfoWithBookmark.of(records, bookmarks, userId),recordInfoWithBookmark -> recordInfoWithBookmark.recordInfo().id()));
}

@Override
Expand All @@ -96,7 +96,7 @@ public ResponseEntity<PaginatedResponse<RecordInfoWithBookmark>> getFamousRecord

return ResponseEntity
.ok()
.body(PaginatedResponse.of(RecordInfoWithBookmark.of(records, bookmarks)));
.body(PaginatedResponse.of(RecordInfoWithBookmark.of(records, bookmarks, userId)));
}

@Override
Expand Down Expand Up @@ -124,7 +124,7 @@ public ResponseEntity<CursorBasePaginatedResponse<RecordInfoWithBookmark>> getRe

return ResponseEntity
.ok()
.body(CursorBasePaginatedResponse.of(RecordInfoWithBookmark.of(records, bookmarks), recordInfoWithBookmark -> recordInfoWithBookmark.recordInfo()
.body(CursorBasePaginatedResponse.of(RecordInfoWithBookmark.of(records, bookmarks, userId), recordInfoWithBookmark -> recordInfoWithBookmark.recordInfo()
.id()));
}

Expand All @@ -140,7 +140,7 @@ public ResponseEntity<CursorBasePaginatedResponse<RecordInfoWithBookmark>> getSu

return ResponseEntity
.ok()
.body(CursorBasePaginatedResponse.of(RecordInfoWithBookmark.of(records, bookmarks), recordInfoWithBookmark -> recordInfoWithBookmark.recordInfo()
.body(CursorBasePaginatedResponse.of(RecordInfoWithBookmark.of(records, bookmarks, userId), recordInfoWithBookmark -> recordInfoWithBookmark.recordInfo()
.id()));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public ResponseEntity<CursorBasePaginatedResponse<RecordInfoWithBookmark>> getBo

return ResponseEntity
.status(HttpStatus.OK)
.body(CursorBasePaginatedResponse.of(RecordInfoWithBookmark.of(records, bookmarks), recordInfoWithBookmark -> recordInfoWithBookmark.recordInfo()
.body(CursorBasePaginatedResponse.of(RecordInfoWithBookmark.of(records, bookmarks, userId), recordInfoWithBookmark -> recordInfoWithBookmark.recordInfo()
.id()));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,7 @@ public ResponseEntity<CursorBasePaginatedResponse<UserInfoWithFollowing>> getSub
responses = {
@ApiResponse(
responseCode = "200",
description = "성공",
content = @Content(
mediaType = MediaType.APPLICATION_JSON_VALUE,
schema = @Schema(
implementation = Preference.class
)
)
description = "성공"
)
}
)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
package org.recordy.server.user.controller;

import com.sun.security.auth.UserPrincipal;
import java.util.List;
import lombok.RequiredArgsConstructor;
import org.recordy.server.auth.security.UserId;
import org.recordy.server.common.dto.response.CursorBasePaginatedResponse;
import org.recordy.server.subscribe.repository.SubscribeRepository;
import org.recordy.server.auth.security.resolver.UserId;
Expand Down Expand Up @@ -84,7 +82,7 @@ public ResponseEntity<CursorBasePaginatedResponse<UserInfoWithFollowing>> getSub
.status(HttpStatus.OK)
.body(CursorBasePaginatedResponse.of(UserInfoWithFollowing.of(users, following), userInfoWithFollowing -> userInfoWithFollowing.userInfo().id()));
}
}


@Override
@GetMapping("/profile/{otherUserId}")
Expand Down

0 comments on commit 3677004

Please sign in to comment.