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

feat: 백문백답 목록 조회 API를 구현한다. #57

Merged
merged 15 commits into from
Oct 14, 2024
Merged

Conversation

min429
Copy link
Collaborator

@min429 min429 commented Oct 13, 2024

📄 변경 사항

  • 커서 기반 페이징 방식으로 조회 API를 구현했습니다.
  • cursor는 백문백답 id값 입니다. (Long)
  • 조회 시 id 값 기준으로 오름차순 정렬되도록 했습니다.(생성된 순서대로 조회)

@min429 min429 requested a review from rlarltj October 13, 2024 14:42
@min429 min429 self-assigned this Oct 13, 2024
Comment on lines 33 to 35
@Transactional
public void saveAndUpdate(Long userId, CreateAndUpdateQnaRequest request) {
Map<Boolean, List<Qna100>> qnaMap = request.toMap(userId, request.qnas());
Copy link
Member

Choose a reason for hiding this comment

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

메소드 명을 upsert로 해도 될 것 같기도 하네요 ㅎㅎ

@min429 min429 merged commit 7dffe65 into main Oct 14, 2024
1 check passed
@min429 min429 deleted the ISSUE-243 branch October 14, 2024 05:59
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.

2 participants