Skip to content

Commit

Permalink
#23 [Update] DTO 수정 - 총 페이지 출력
Browse files Browse the repository at this point in the history
  • Loading branch information
JSoi committed Jul 30, 2022
1 parent cdb4d2f commit eaefce4
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,12 @@ public class StorePagedResponseDto {
private long totalCount;
private long leftElement;
private int page;
private int totalPage;
private List<StoreCardResponseDto> cards;

public StorePagedResponseDto(Page<Store> resultStoreList, List<StoreCardResponseDto> cards) {
this.hasNextPage = resultStoreList.hasNext();
this.totalPage = resultStoreList.getTotalPages();
this.cards = cards;
this.totalCount = resultStoreList.getTotalElements();
this.page = resultStoreList.getNumber();
Expand Down

0 comments on commit eaefce4

Please sign in to comment.