-
Notifications
You must be signed in to change notification settings - Fork 1
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
NABI-258--FIX: cursor pagination #51
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
e567028
NABI-258--feat : OrderSpecifier(정렬 기준)을 반환하는 메소드 util에 추가
hi-june 2d5e199
NABI-258--feat : 정렬 조건을 받을 수 있는 enum 추가
hi-june 641e56f
NABI-258--feat : 커서 기반 paging에 공통적으로 필요한 interface 추가
hi-june f633dcf
NABI-258--feat : 정렬 조건에 따라 paging 하도록 추가
hi-june ca052ff
NABI-258--hot-fix : 정렬 조건 추가
hi-june 5b4b6c0
Merge branch 'dev' into NABI-258--junhyuk--fix--cursor-pagination
hi-june 667578d
Merge branch 'dev' into NABI-258--junhyuk--fix--cursor-pagination
hi-june 0aab0a7
Merge remote-tracking branch 'origin/NABI-258--junhyuk--fix--cursor-p…
hi-june 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
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
12 changes: 12 additions & 0 deletions
12
src/main/java/org/prgrms/nabimarketbe/global/util/CursorPaging.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,12 @@ | ||
package org.prgrms.nabimarketbe.global.util; | ||
|
||
import com.querydsl.core.types.dsl.BooleanExpression; | ||
|
||
public interface CursorPaging { | ||
/** | ||
* cursorId를 받아 cursor Id로 조건절을 만드는 메소드 | ||
* @param cursorId | ||
* @return | ||
*/ | ||
BooleanExpression cursorId(String cursorId); | ||
} |
5 changes: 5 additions & 0 deletions
5
src/main/java/org/prgrms/nabimarketbe/global/util/OrderCondition.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,5 @@ | ||
package org.prgrms.nabimarketbe.global.util; | ||
|
||
public enum OrderCondition { | ||
CARD_CREATED_DESC | ||
} |
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.
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.
p3
어느곳은 Sort 기준이 createdDate고, 어느곳은 modifiedDate인데요 ! 일관성을 가져갈 순 없는건가요 ??
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.
이 부분은 거래 성사 요청에 대한 부분이고, 거래 성사 같은 경우, 성사까지 이루어지는 시점으로 정렬 기준을 잡는 것이 좋아보여서 modifiedDate로 잡아두었다고 합니다.
From. 예진