Skip to content

Conversation

@dev-Crayon
Copy link
Contributor

🐬 요약

유저 질문 및 답변 관련 API

👻 유형

PR의 유형에 맞게 체크해주세요!

  • 버그 수정
  • 기능 개발
  • 코드 스타일 수정 (formatting, local variables)
  • 리팩토링 (no functional changes, no api changes)
  • 빌드 관련 변경사항
  • CI 관련 변경사항
  • CD 관련 변경사항
  • 문서 내용 변경
  • Release
  • 기타... (다음 줄에 사유를 입력해주세요)

🍀 작업 내용

PR에 담긴 작업 내용을 작성해주세요!

  • 유저 질문 및 답변 관련 API
  • 테스트 코드 작성

🌟 관련 이슈

PR과 관련된 이슈 번호를 작성해주세요!

close: #861

MemberQuestion.java & MemberAnswer.java 코드 구현

Related to: #861
QuestionReaction.java AnswerReaction.java QuestionReport.java 구현

Related to: #861
QuestionSaveRequest.java & MemberQuestionRepository.java 코드 구현

Related to: #861
MemberQuestionModifier.java & MemberQuestionRetriever.java 구현

Related to: #861
질문 작성 API
질문 수정 API
질문 삭제 API
답변 작성 API
답변 수정 API
답변 삭제 API
나도 궁금해요 토글 API
도움돼요 토글 API
질문 신고 API
질문 목록 조회 API
대기중인 질문 개수 조회 API

Related to: #861
@dev-Crayon dev-Crayon requested a review from Lim-Changi January 5, 2026 11:39
@dev-Crayon dev-Crayon self-assigned this Jan 5, 2026
@dev-Crayon dev-Crayon added high priority 높은 우선순위 요청 작업 승헌✏️ 승헌이 연 PR, Issue에 사용 ✨Feature 새로운 기능 개발시 사용합니다 labels Jan 5, 2026
@Lim-Changi Lim-Changi changed the title 유저 질문 및 답변 관련 API [Feat] 유저 질문 및 답변 관련 API Jan 9, 2026
Copy link
Member

@Lim-Changi Lim-Changi left a comment

Choose a reason for hiding this comment

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

이외에는 추가 의견 없습니다!
기존 프로젝트 패턴들 활용해서 너무 잘 구현해주시느라 고생 많으셨습니다!!!

Copy link
Member

Choose a reason for hiding this comment

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

해당 클래스는 호출이 안되고 있는 것 같은데, 어떤 용도로 쓰이는지 궁금합니다!

Comment on lines +232 to +233
log.info("tab: {}", tab);
log.info(questions.toString());
Copy link
Member

Choose a reason for hiding this comment

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

요거는 제거해도 될 것 같아요!

Comment on lines +14 to +30
@Query("SELECT q FROM MemberQuestion q " +
"WHERE q.receiver.id = :receiverId " +
"AND EXISTS (SELECT 1 FROM MemberAnswer a WHERE a.question.id = q.id) " +
"ORDER BY q.createdAt DESC")
List<MemberQuestion> findAnsweredQuestions(
@Param("receiverId") Long receiverId,
Pageable pageable
);

@Query("SELECT q FROM MemberQuestion q " +
"WHERE q.receiver.id = :receiverId " +
"AND NOT EXISTS (SELECT 1 FROM MemberAnswer a WHERE a.question.id = q.id) " +
"ORDER BY q.createdAt DESC")
List<MemberQuestion> findUnansweredQuestions(
@Param("receiverId") Long receiverId,
Pageable pageable
);
Copy link
Member

Choose a reason for hiding this comment

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

제가 신고 정책을 잘 몰라서, 혹시 신고 여부나 누적 신고수는 관계없이 기본적으로 모든 질문들은 조회가 되는 게 맞나요??

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

Labels

✨Feature 새로운 기능 개발시 사용합니다 high priority 높은 우선순위 요청 작업 size/XXL 승헌✏️ 승헌이 연 PR, Issue에 사용

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feat] 유저 익명 질문 기능 구현

3 participants