Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] 이동봉사자, 모집자 - 모집자 프로필 공고 조회 API 수정 #172

Merged
merged 2 commits into from
May 4, 2024

Conversation

kyeong-hyeok
Copy link
Member

💡 연관된 이슈

close #171

📝 작업 내용

이동봉사자, 모집자 - 모집자 프로필 공고 조회 API 수정

  • 이동봉사자, 모집자 - 모집자 프로필 공고 조회 API 반환값 수정 및 정렬 기준 추가
  • 이동봉사자, 모집자 - 모집자 프로필 공고 조회 테스트 코드 수정

💬 리뷰 요구 사항

@kyeong-hyeok kyeong-hyeok added ✨ Feature 기능 개발 Priority: Medium 우선순위 중간 🐯 Koeyhk 담당자 labels May 4, 2024
Copy link
Member

@hojeong2747 hojeong2747 left a comment

Choose a reason for hiding this comment

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

봉사자, 모집자가 보는 모집자 프로필 공고 조회 API의 차이점이 잘 반영된 것 같아요. 저도 모집자 프로필에서 후기 조회할 때 API 분리의 필요성이 느껴집니다! 고생하셨어요 :)

return ResponseEntity.ok(response);
}

@Operation(summary = "중개자 - 중개 프로필 - 이동봉사 공고 목록 조회", description = "중개 프로필에서 이동봉사 공고 목록을 조회합니다.",
Copy link
Member

Choose a reason for hiding this comment

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

이렇게 구분되어 써주는 거 좋은 것 같네요. 봉사자와 모집자가 더 잘 분리되는!

new OrderSpecifier(Order.ASC, post.endDate),
new OrderSpecifier(Order.DESC, post.createdDate)}
: defaultOrder;
}
Copy link
Member

Choose a reason for hiding this comment

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

queryDsl에서 정렬할 때 쓰는 orderSpecifier 정확하게 알고 써본 적이 없어서 궁금했었는데 코드를 보니 감이 조금 잡히는 것 같아요. entity 필드 기준으로 정렬해야 하는 기능이 있을 때 저도 한 번 써보겠습니다!

@kyeong-hyeok kyeong-hyeok merged commit c6e6ca1 into develop May 4, 2024
1 check passed
@kyeong-hyeok kyeong-hyeok deleted the feat/171-get-intermediary-posts-modify branch May 4, 2024 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ Feature 기능 개발 🐯 Koeyhk 담당자 Priority: Medium 우선순위 중간
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature] 이동봉사자, 모집자 - 모집자 프로필 공고 조회 API 수정
2 participants