Feature/#97 98 102 나의 댓글 좋아요 조회 api 구현#103
Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Implements member “My Activity” query APIs to fetch a user’s own comments and liked projects (preview + full list), including filtering/sorting/pagination and corresponding REST Docs.
Changes:
- Add
/members/me/comments,/members/me/likes/preview, and/members/me/likesendpoints with date filters and sort options. - Introduce repository-level projection queries + DTO mapping records for comment/like responses.
- Add integration tests and REST Docs snippets for the new endpoints.
Reviewed changes
Copilot reviewed 15 out of 15 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| src/main/java/com/opus/opus/modules/member/api/MemberController.java | Adds the 3 new “me” endpoints with query params and security annotations |
| src/main/java/com/opus/opus/modules/member/application/MemberQueryService.java | Implements query logic, date validation, pagination/sort condition builder |
| src/main/java/com/opus/opus/modules/team/domain/dao/TeamCommentRepository.java | Adds JPQL projection query for “my comments” with optional date filters |
| src/main/java/com/opus/opus/modules/team/domain/dao/TeamLikeRepository.java | Adds JPQL projection queries for “my likes” preview and full list |
| src/main/java/com/opus/opus/modules/team/domain/dao/MyCommentResult.java | Adds projection record for comment + project joined fields |
| src/main/java/com/opus/opus/modules/team/domain/dao/MyLikedProjectResult.java | Adds projection record for liked project joined fields |
| src/main/java/com/opus/opus/modules/member/application/dto/response/MyCommentResponse.java | Adds response DTO + mapping from projection |
| src/main/java/com/opus/opus/modules/member/application/dto/response/MyLikePreviewResponse.java | Adds response DTO + mapping from projection |
| src/main/java/com/opus/opus/modules/member/application/dto/response/MyLikedProjectResponse.java | Adds response DTO + mapping from projection |
| src/main/java/com/opus/opus/modules/member/application/dto/request/SearchConditionRequest.java | Adds internal request record encapsulating pageable + date bounds |
| src/main/java/com/opus/opus/modules/member/exception/MemberExceptionType.java | Adds date-range/order validation error types/messages |
| src/test/java/com/opus/opus/member/application/MemberQueryServiceTest.java | Adds integration tests for new query behaviors and validation |
| src/test/java/com/opus/opus/restdocs/docs/MemberApiDocsTest.java | Adds REST Docs tests/snippets for the new endpoints |
| src/main/java/com/opus/opus/docs/asciidoc/member.adoc | Documents the new endpoints and failure case |
| src/main/java/com/opus/opus/modules/contest/application/ContestQueryService.java | Removes applyDenseRanking helper method |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
src/main/java/com/opus/opus/modules/team/domain/dao/TeamCommentRepository.java
Show resolved
Hide resolved
src/main/java/com/opus/opus/modules/member/application/MemberQueryService.java
Outdated
Show resolved
Hide resolved
src/test/java/com/opus/opus/restdocs/docs/MemberApiDocsTest.java
Outdated
Show resolved
Hide resolved
src/main/java/com/opus/opus/modules/contest/application/ContestQueryService.java
Show resolved
Hide resolved
# Conflicts: # src/main/java/com/opus/opus/docs/asciidoc/member.adoc # src/main/java/com/opus/opus/modules/member/api/MemberController.java # src/main/java/com/opus/opus/modules/member/application/MemberQueryService.java # src/test/java/com/opus/opus/member/application/MemberQueryServiceTest.java # src/test/java/com/opus/opus/restdocs/docs/MemberApiDocsTest.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🔥 연관된 이슈
close: #97
close : #98
close : #102
📜 작업 내용
1. 나의 댓글 조회 API (GET /members/me/comments)
2. 나의 좋아요 미리보기 API (GET /members/me/likes/preview)
3. 나의 좋아요 전체 조회 API (GET /members/me/likes)
💬 리뷰 요구사항
✨ 기타