-
Notifications
You must be signed in to change notification settings - Fork 0
Feature/#97 98 102 나의 댓글 좋아요 조회 api 구현 #103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
The head ref may contain hidden characters: "Feature/#97-98-102-\uB098\uC758_\uB313\uAE00_\uC88B\uC544\uC694_\uC870\uD68C_API_\uAD6C\uD604"
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
4269647
feat : 마이페이지 댓글 및 좋아요 기능 구현 완료
pykido 7379155
test : 테스트 코드 및 adoc 작성 완료
pykido 8390461
refactor : 코파일럿 리뷰 반영 완료
pykido e033a5e
Merge branch 'develop' into Feature/#97-98-102-나의_댓글_좋아요_조회_API_구현
pykido 0adcb9e
Merge branch 'develop' into Feature/#97-98-102-나의_댓글_좋아요_조회_API_구현
pykido d72fa79
refactor : conflict 해결하며 생긴 문제 해결 및 테스트 모두 통과
pykido d2a581c
refactor : projection 적용 완료
pykido File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
11 changes: 11 additions & 0 deletions
11
...ain/java/com/opus/opus/modules/member/application/dto/request/SearchConditionRequest.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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| package com.opus.opus.modules.member.application.dto.request; | ||
|
|
||
| import java.time.LocalDateTime; | ||
| import org.springframework.data.domain.Pageable; | ||
|
|
||
| public record SearchConditionRequest( | ||
| Pageable pageable, | ||
| LocalDateTime startDateTime, | ||
| LocalDateTime endDateTime | ||
| ) { | ||
| } |
51 changes: 51 additions & 0 deletions
51
src/main/java/com/opus/opus/modules/member/application/dto/response/MyCommentResponse.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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,51 @@ | ||
| package com.opus.opus.modules.member.application.dto.response; | ||
|
|
||
| import com.opus.opus.modules.team.domain.dao.projection.MyCommentProjection; | ||
| import java.time.LocalDateTime; | ||
|
|
||
| public record MyCommentResponse( | ||
| CommentInfo comment, | ||
| ProjectInfo project | ||
| ) { | ||
|
|
||
| public static MyCommentResponse from(final MyCommentProjection result) { | ||
| return new MyCommentResponse( | ||
| new CommentInfo( | ||
| result.getCommentId(), | ||
| result.getContent(), | ||
| result.getCreatedAt(), | ||
| result.getMemberName() | ||
| ), | ||
| new ProjectInfo( | ||
| result.getContestId(), | ||
| result.getContestName(), | ||
| result.getCategoryName(), | ||
| result.getTrackName(), | ||
| result.getTeamId(), | ||
| result.getTeamName(), | ||
| result.getProjectName(), | ||
| result.getOverview() | ||
| ) | ||
| ); | ||
| } | ||
|
|
||
| public record CommentInfo( | ||
| Long commentId, | ||
| String content, | ||
| LocalDateTime createdAt, | ||
| String memberName | ||
| ) { | ||
| } | ||
|
|
||
| public record ProjectInfo( | ||
| Long contestId, | ||
| String contestName, | ||
| String categoryName, | ||
| String trackName, | ||
| Long teamId, | ||
| String teamName, | ||
| String projectName, | ||
| String overview | ||
| ) { | ||
| } | ||
| } |
22 changes: 22 additions & 0 deletions
22
...ain/java/com/opus/opus/modules/member/application/dto/response/MyLikePreviewResponse.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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| package com.opus.opus.modules.member.application.dto.response; | ||
|
|
||
| import com.opus.opus.modules.team.domain.dao.MyLikedProjectResult; | ||
|
|
||
| public record MyLikePreviewResponse( | ||
| Long teamId, | ||
| String teamName, | ||
| Long contestId, | ||
| String projectName, | ||
| String contestName | ||
| ) { | ||
|
|
||
| public static MyLikePreviewResponse from(final MyLikedProjectResult result) { | ||
| return new MyLikePreviewResponse( | ||
| result.teamId(), | ||
| result.teamName(), | ||
| result.contestId(), | ||
| result.projectName(), | ||
| result.contestName() | ||
| ); | ||
| } | ||
| } |
22 changes: 22 additions & 0 deletions
22
...in/java/com/opus/opus/modules/member/application/dto/response/MyLikedProjectResponse.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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| package com.opus.opus.modules.member.application.dto.response; | ||
|
|
||
| import com.opus.opus.modules.team.domain.dao.MyLikedProjectResult; | ||
|
|
||
| public record MyLikedProjectResponse( | ||
| Long teamId, | ||
| String teamName, | ||
| String projectName, | ||
| Long contestId, | ||
| String contestName | ||
| ) { | ||
|
|
||
| public static MyLikedProjectResponse from(final MyLikedProjectResult result) { | ||
| return new MyLikedProjectResponse( | ||
| result.teamId(), | ||
| result.teamName(), | ||
| result.projectName(), | ||
| result.contestId(), | ||
| result.contestName() | ||
| ); | ||
| } | ||
| } |
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.