-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [feat] : 스크랩 전제 조회 관려 에러코드 추가 * [feat] : 스크랩 전체 조회 응답 DTO 추가 * [feat] : 스크랩 전체 조회 QueryDSL 추가 * [feat] : 스크랩 전체 조회 API Controller/Service 로직 추가 * [test] : InteractionFixture 정적 생성메서드 추가 * [test] : 스크랩 전체 조회 Controller/Repository 테스트 추가 * [style] : 코드 포맷팅 * [rename] : 마이페이지 게시글 관련 에러코드 통일 및 메시지 내용 변경 * [fix] : 마이페이지 게시글 조회 관련 API Path 일관성을 위한 수정 * [test] : 마이페이지 게시글 조회 관련 API 변경으로 인한 수정 * [fix] : 마이페이지 게시글 조회 시 updatedAt -> createdAt 정렬 순으로 변경 * [fix] : Coalesce를 통한 null 값 처리
- Loading branch information
Showing
11 changed files
with
234 additions
and
49 deletions.
There are no files selected for viewing
This file contains 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 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
35 changes: 35 additions & 0 deletions
35
src/main/java/com/dnd/gongmuin/member/dto/response/BookmarksByMemberResponse.java
This file contains 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,35 @@ | ||
package com.dnd.gongmuin.member.dto.response; | ||
|
||
import com.dnd.gongmuin.question_post.domain.QuestionPost; | ||
import com.querydsl.core.annotations.QueryProjection; | ||
|
||
public record BookmarksByMemberResponse( | ||
Long questionPostId, | ||
String title, | ||
String content, | ||
String jobGroup, | ||
int reward, | ||
String updatedAt, | ||
boolean isChosen, | ||
int savedTotalCount, | ||
int recommendTotalCount | ||
) { | ||
@QueryProjection | ||
public BookmarksByMemberResponse( | ||
QuestionPost questionPost, | ||
int savedTotalCount, | ||
int recommendTotalCount | ||
) { | ||
this( | ||
questionPost.getId(), | ||
questionPost.getTitle(), | ||
questionPost.getContent(), | ||
questionPost.getJobGroup().getLabel(), | ||
questionPost.getReward(), | ||
questionPost.getUpdatedAt().toString(), | ||
questionPost.getIsChosen(), | ||
savedTotalCount, | ||
recommendTotalCount | ||
); | ||
} | ||
} |
This file contains 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 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 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 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 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 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 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
Oops, something went wrong.