This repository has been archived by the owner on Aug 13, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
[#25] 사용자 차단 목록 불러오기 기능 구현 #56
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
d84e4dc
[#25] 사용자 차단 목록 불러오기 기능 구현
625db01
Merge pull request #52 from f-lab-edu/feature/23
msugo1 fc910ef
Merge pull request #54 from f-lab-edu/feature/24
msugo1 70ecf0b
[#22] 피드백 반영
f5c2d95
Merge 'feature/22' into origin/feature/22 for push
024f0c0
[#25] 피드백 반영
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
26 changes: 26 additions & 0 deletions
26
src/main/java/me/soo/helloworld/model/blockuser/BlockUserListRequest.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,26 @@ | ||
package me.soo.helloworld.model.blockuser; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import me.soo.helloworld.util.Pagination; | ||
|
||
@Builder | ||
@AllArgsConstructor | ||
public class BlockUserListRequest { | ||
|
||
private final String userId; | ||
|
||
private final int offset; | ||
|
||
private final int limit; | ||
|
||
static public BlockUserListRequest create(String userId, int pageNumber, Pagination pagination) { | ||
int pageLimit = pagination.getMaxPageBlockUser(); | ||
|
||
return BlockUserListRequest.builder() | ||
.userId(userId) | ||
.offset(pagination.calculateOffset(pageLimit, pageNumber)) | ||
.limit(pageLimit) | ||
.build(); | ||
} | ||
} |
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
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.
이쪽 부분은 이전 리뷰에 남겨드린것처럼 페이징 계산식까지 아예 여기로 가져와서 페이징 계산용 클래스로 만들어줘도 좋겠네요
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.
넵 머지한다음 계산식 만들었던거 적용해서 계산용 클래스로 만들어줬습니다!