-
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] : 추천 게시글 응답 dto 추가 * [feat] : 추천 게시물 조회 쿼리 작성 * [test] : 추천 게시물 조회 쿼리 테스트 * [feat] : 추천 게시물 조회 비즈니스 로직 추가 * [feat] : 추천 게시물 조회 controller 로직 작성 * [test] : 추천 게시물 조회 controller 로직 테스트 * [fix] : 직군 필터 쿼리 수정 * [test] : 직군 필터 쿼리 수정 -> 테스트 반영 * [style] : 코드 리포멧팅 * [feat] : 질문 게시물 검색 쿼리에 최신순 정렬 추가 * [test] : 질문 게시물 검색 쿼리에 최신순 정렬 추가 반영 * [test] : interactionFixture 통합
- Loading branch information
Showing
11 changed files
with
254 additions
and
38 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
30 changes: 30 additions & 0 deletions
30
src/main/java/com/dnd/gongmuin/question_post/dto/response/RecQuestionPostResponse.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,30 @@ | ||
package com.dnd.gongmuin.question_post.dto.response; | ||
|
||
import com.dnd.gongmuin.question_post.domain.QuestionPost; | ||
import com.querydsl.core.annotations.QueryProjection; | ||
|
||
public record RecQuestionPostResponse( | ||
Long questionPostId, | ||
String title, | ||
int reward, | ||
boolean isChosen, | ||
int savedCount, | ||
int recommendCount | ||
) { | ||
|
||
@QueryProjection | ||
public RecQuestionPostResponse( | ||
QuestionPost questionPost, | ||
int savedCount, | ||
int recommendCount | ||
) { | ||
this( | ||
questionPost.getId(), | ||
questionPost.getTitle(), | ||
questionPost.getReward(), | ||
questionPost.getIsChosen(), | ||
savedCount, | ||
recommendCount | ||
); | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,8 +48,12 @@ public static Member member3() { | |
|
||
public static Member member4() { | ||
return Member.of( | ||
"회원", | ||
"소셜회원", | ||
JobGroup.ADMINISTRATION, | ||
JobCategory.GAS, | ||
"KAKAO1234/[email protected]", | ||
"[email protected]", | ||
20000 | ||
); | ||
} | ||
|
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.