Skip to content

[Week07] 징징이 7주차 미션#19

Open
junjinyun wants to merge 4 commits into
mainfrom
week07_jingjing2
Open

[Week07] 징징이 7주차 미션#19
junjinyun wants to merge 4 commits into
mainfrom
week07_jingjing2

Conversation

@junjinyun
Copy link
Copy Markdown
Contributor

  1. 오프셋 기반 진행중 미션
image
  1. 커서 기반 내가 작성한 리뷰(id, 평점 순)
image image
  1. valid 통한 유효성검사
image

페이징 기능에 대해 어떤 차이가 있는지 정도만 알고 있던 상태에서 각각 서로 다른 페이징을 직접 구현 해 보니 둘의 차이나 코드 상의 차이점에 대해 더 잘 알게 된거 같아 좋았음.

@junjinyun junjinyun requested a review from yousung1020 May 11, 2026 08:54
@junjinyun junjinyun self-assigned this May 11, 2026
Copy link
Copy Markdown
Contributor

@yousung1020 yousung1020 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

수고많으셨습니다! 전반적으로 수용력 및 응용력이 훌륭하신 것 같아요! 매우 깔끔하고 좋은 코드인 것 같으나, 일부 피드백 사항만 적용되면 더욱 좋을 것 같아요!

public static ReviewPreviewListResponse toReviewPreviewListResponse(Slice<StoreReview> reviewSlice) {
List<ReviewResponse> reviewResponseList = reviewSlice.getContent().stream()
.map(review -> toReviewResponse(review, new ArrayList<>()))
.collect(Collectors.toList());
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

축약할 수 있을 것 같습니다!

public CommonResponse<Void> addUserInterests(
@PathVariable Long userId,
@RequestBody @NotEmpty(message = "최소 하나 이상의 관심사 ID가 필요합니다.") List<Long> request) {
@RequestBody @Valid @NotEmpty(message = "최소 하나 이상의 관심사 ID가 필요합니다.") List<Long> request) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

코드의 확장성 및 일관성을 위해 @NotEmpty를 dto 필드 단으로 옮겨주세요!

@heesik03
Copy link
Copy Markdown
Contributor

전체적으로 간결하고 좋은 코드인 것 같습니다!

@wjddydghks
Copy link
Copy Markdown
Contributor

너무 좋습니다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants