Skip to content

[Feat] 질문 목록 및 상세 응답에 isMine 필드 추가#119

Merged
kkw610 merged 1 commit into
developfrom
feat/#118
May 28, 2026
Merged

[Feat] 질문 목록 및 상세 응답에 isMine 필드 추가#119
kkw610 merged 1 commit into
developfrom
feat/#118

Conversation

@kkw610

@kkw610 kkw610 commented May 28, 2026

Copy link
Copy Markdown
Collaborator

#️⃣연관된 이슈

#118

📝작업 내용

질문 목록/상세 응답에 isMine 필드를 추가하여 프론트에서
본인의 게시물에 대해서만 수정/삭제 버튼 표시 여부를 판단할 수 있도록 함

테스트:

  • 본인이 작성한 질문 조회 시 isMine: true 반환 확인
  • 타인이 작성한 질문 조회 시 isMine: false 반환 확인

QuestionResDTO

  • QuestionSummaryResponse에 isMine(Boolean) 필드 추가
  • QuestionDetailResponse에 isMine(Boolean) 필드 추가

QuestionService

  • toQuestionSummaryResponse(): isMine 계산 추가(question.getUser().getId().equals(loginUser.getId()))
  • toDetailResponse(): isMine 계산 추가

Closes #118

@kkw610 kkw610 self-assigned this May 28, 2026
@kkw610 kkw610 linked an issue May 28, 2026 that may be closed by this pull request
2 tasks
@kkw610 kkw610 merged commit 7a5e098 into develop May 28, 2026
1 check passed
@kkw610 kkw610 deleted the feat/#118 branch May 28, 2026 00:01
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] 질문 목록과 상세에 isMine 필드 추가

1 participant