-
Notifications
You must be signed in to change notification settings - Fork 0
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
[Feat] 마이페이지 인사이트 조회 #159
Merged
Merged
[Feat] 마이페이지 인사이트 조회 #159
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
5fdb24e
[Feat] 마이 페이지 userId와 drawerId로 인사이트 조회
heoboseong7 02ff126
[Test] 마이페이지 인사이트 조회 API 테스트
heoboseong7 01fcecc
[Fix] batch_deploy 스크립트 변경사항 반영
heoboseong7 b9913cd
[Refactor] getByUserId -> getInsightsForMyPage 로 이름 변경
heoboseong7 d45146b
[Fix] batch_deploy 디렉토리 경로 / 제거
heoboseong7 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 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
16 changes: 16 additions & 0 deletions
16
keewe-api/src/main/java/ccc/keeweapi/dto/insight/InsightMyPageResponse.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,16 @@ | ||
package ccc.keeweapi.dto.insight; | ||
|
||
import ccc.keewedomain.persistence.domain.common.Link; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
|
||
@Getter | ||
@AllArgsConstructor(staticName = "of") | ||
public class InsightMyPageResponse { | ||
private Long id; | ||
private String contents; | ||
private Link link; | ||
private ReactionAggregationResponse reaction; | ||
private String createdAt; | ||
private boolean isBookmark; | ||
} |
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
18 changes: 18 additions & 0 deletions
18
keewe-domain/src/main/java/ccc/keewedomain/dto/insight/InsightMyPageDto.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,18 @@ | ||
package ccc.keewedomain.dto.insight; | ||
|
||
import ccc.keewedomain.persistence.domain.common.Link; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
|
||
import java.time.LocalDateTime; | ||
|
||
@Getter | ||
@AllArgsConstructor(staticName = "of") | ||
public class InsightMyPageDto { | ||
private Long id; | ||
private String contents; | ||
private Link link; | ||
private ReactionAggregationGetDto reaction; | ||
private LocalDateTime createdAt; | ||
private boolean isBookmark; | ||
} |
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 |
---|---|---|
@@ -1,18 +1,21 @@ | ||
JAR_DIR='/home/ubuntu/'$2 | ||
|
||
cp keewe-batch/build/libs/keewe-batch-0.0.1-SNAPSHOT.jar ${JAR_DIR} | ||
|
||
echo "> Auto batch deploy starting...." | ||
|
||
mkdir $JAR_DIR | ||
mkdir -p $JAR_DIR | ||
cd $JAR_DIR | ||
|
||
ORIGIN_JAR_PATH= "${JAR_DIR}/*.jar" | ||
chmod 770 ${JAR_DIR}/$1-0.0.1-SNAPSHOT.jar | ||
ORIGIN_JAR_PATH="${JAR_DIR}/$1-0.0.1-SNAPSHOT.jar" | ||
ORIGIN_JAR_NAME=$(basename ${ORIGIN_JAR_PATH}) | ||
TARGET_PATH="${JAR_DIR}/batch-application.jar" | ||
|
||
echo "> Do deploy :: $1" | ||
echo " > 배포 JAR: "${ORIGIN_JAR_NAME} | ||
|
||
echo " > sudo ln -s -f ${JAR_DIR}${ORIGIN_JAR_NAME} ${TARGET_PATH}" | ||
sudo ln -s -f ${JAR_DIR}${ORIGIN_JAR_NAME} ${TARGET_PATH} | ||
echo " > sudo ln -s -f ${JAR_DIR}/${ORIGIN_JAR_NAME} ${TARGET_PATH}" | ||
ln -s -f "${JAR_DIR}/${ORIGIN_JAR_NAME} ${TARGET_PATH}" | ||
|
||
echo "> Batch deploy Complete ! !" | ||
echo "> Batch deploy Complete ! !" |
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
drawerId가 Null인 케이스는 서랍 탭 중에 전체인 경우죠?
그럼 조건이 equal null로 들어가면 전체 조회가 안되지 않을까여?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
네 drawerId가 null이면 전체인 경우에요
저렇게 사용하면 drawerId가 null인 경우 and(null)로 들어가면 파라미터가 null로 들어가서 조건문에서 제외돼요.
그래서 drawerId가 null인 경우에 아래처럼 쿼리가 나갑니다.
where
insight0_.
writer_id
=?and insight0_.
insight_id
<?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
아.. 그냥 뭉탱이로 Null이면 상관없나요
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
네 확인했습니닷
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
네 querydsl의 where에서 파라미터가 null인 경우에는 제외한다고 하네요