Skip to content

[Feat] 질문 목록 응답에 isLiked 필드 추가#115

Merged
kkw610 merged 1 commit into
developfrom
feat/#114
May 27, 2026
Merged

[Feat] 질문 목록 응답에 isLiked 필드 추가#115
kkw610 merged 1 commit into
developfrom
feat/#114

Conversation

@kkw610

@kkw610 kkw610 commented May 27, 2026

Copy link
Copy Markdown
Collaborator

#️⃣연관된 이슈

#114

📝작업 내용

질문 목록 조회 API 응답에 isLiked 필드를 추가

테스트:

  • 로그인 후 GET /api/sessions/{sessionId}/questions 호출
  • 응답의 각 질문 객체에 isLiked 필드 포함 여부 확인
  • 좋아요 누른 질문은 isLiked: true, 누르지 않은 질문은 isLiked: false 반환 확인

QuestionResDTO

  • QuestionSummaryResponse에 isLiked(Boolean) 필드 추가

QuestionController

  • getQuestionRoom()에 @AuthenticationPrincipal Long userId 파라미터 추가
  • 서비스 호출 시 userId 전달

QuestionService

  • getQuestionRoom(): userId → loginUser 조회 후 getQuestionGroups()에 전달
  • getQuestionGroups(): loginUser 파라미터 추가, toQuestionSummaryResponse() 호출 시 전달
  • toQuestionSummaryResponse(): loginUser 파라미터 추가, isLiked 계산 후 응답에 포함

Closes #114

@kkw610 kkw610 linked an issue May 27, 2026 that may be closed by this pull request
3 tasks
@kkw610 kkw610 self-assigned this May 27, 2026
@kkw610 kkw610 added enhancement New feature or request and removed enhancement New feature or request labels May 27, 2026
@kkw610 kkw610 merged commit 98f3835 into develop May 27, 2026
1 check passed
@kkw610 kkw610 deleted the feat/#114 branch May 27, 2026 15:04
@kkw610 kkw610 changed the title feat: 질문 목록 응답에 isLiked 필드 추가 [Feat] 질문 목록 응답에 isLiked 필드 추가 May 27, 2026
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.

[Feat] 질문 목록 응답에 isLiked 필드 추가

1 participant