Skip to content

[4주차] 이은표/[feat] 추가 api 구현#156

Open
vyfhfhd wants to merge 7 commits intoLeets-Official:이은표/mainfrom
vyfhfhd:이은표/4주차

Hidden character warning

The head ref may contain hidden characters: "\uc774\uc740\ud45c/4\uc8fc\ucc28"
Open

[4주차] 이은표/[feat] 추가 api 구현#156
vyfhfhd wants to merge 7 commits intoLeets-Official:이은표/mainfrom
vyfhfhd:이은표/4주차

Conversation

@vyfhfhd
Copy link
Copy Markdown

@vyfhfhd vyfhfhd commented Apr 28, 2026

1. 과제 요구사항 중 구현한 내용

  • 댓글 좋아요
  • 댓글 신고
  • 댓글 상태 변경 pending -> resolve
  • 중복 방지

2. 핵심 변경 사항

  • 댓글 남기기
    posts/{postId}/comments/comments?userId=i
  • 댓글 좋아요
    posts/{postId}/comments/{commentId}/likes
  • 댓글 신고
    posts/{postId}/comments/{commentId}/reports
  • 댓글 신고 확인
    posts/{postId}/comments/{commentId}/reports/{reportId}/resolve

3. 실행 및 검증 결과

  • 실행 결과:
    댓글 작성
image

댓글 좋아요
image

댓글 좋아요 중복 방지
image

댓글 신고 사유x
image

댓글 신고 정상처리
image

댓글 신고 중복 방지
image

댓글 신고 상태 처리 완료
image

4. 완료 사항

  1. 댓글 좋아요
  2. 댓글 신고
  3. 댓글 상태 변경

5. 추가 사항

  • 관련 이슈: closed #132

제출 체크리스트

  • PR 제목이 규칙에 맞다
  • base가 {이름}/main 브랜치다
  • compare가 {이름}/{숫자}주차 브랜치다
  • 프로젝트가 정상 실행된다
  • 본인을 Assignee로 지정했다
  • 파트 담당 Reviewer를 지정했다
  • 리뷰 피드백을 반영한 뒤 머지/PR close를 진행한다

Reviewer 참고

@vyfhfhd vyfhfhd changed the title api 추가 구현 [4주차] 이은표/[feat]/api 추가 구현 Apr 28, 2026
@vyfhfhd vyfhfhd changed the title [4주차] 이은표/[feat]/api 추가 구현 [4주차] 이은표/[feat] 추가 api 구현 Apr 28, 2026
@vyfhfhd vyfhfhd self-assigned this Apr 29, 2026
@vyfhfhd vyfhfhd marked this pull request as draft April 29, 2026 05:18
@vyfhfhd vyfhfhd requested a review from a team April 29, 2026 05:18
@vyfhfhd vyfhfhd marked this pull request as ready for review April 29, 2026 05:19
Copy link
Copy Markdown

@KunHeeLee7 KunHeeLee7 left a comment

Choose a reason for hiding this comment

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

과제 하시느라 수고 많으셨습니다! 저는 구현하지 못했던 댓글 기능을 구현해주셔서, 나중에 해당 기능을 구현하는 데 큰 도움이 될 것 같습니다. 감사합니다 😊

CommentResponse.CreateCommentResponse response =
commentService.createComment(postId, userId, request);

return ApiResponse.success("COMMENT_CREATED", "댓글 작성 성공", response);
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🛠️ 성공 응답 코드와 실패 응답 코드의 네이밍 규칙이 다소 다른 것 같습니다. 응답 코드를 일관된 규칙으로 구성하면 API 응답을 이해하기 더 쉬울 것 같습니다 👍

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

해당 파일은 신고 관련 Request DTO이기 때문에 report 디렉토리에 두는 것이 더 자연스러울 것 같아 조심스럽게 의견 드립니다 😊

Copy link
Copy Markdown

@kangyeson kangyeson left a comment

Choose a reason for hiding this comment

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

Comment Entity를 여러 상태로 분기하여 구현하신 점이 인상 깊었습니다. 코드도 깔끔하게 정리해주셔서 보기 편했습니다ㅎㅎ 고생하셨습니다~!

}

report.resolve();

Copy link
Copy Markdown

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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants