Skip to content

Commit

Permalink
#12 [update]
Browse files Browse the repository at this point in the history
리뷰 리스폰스 KEY : hasNextPage true false 값 오류 수정
리뷰 리스폰스 KEY : profile_image_url -> useImage 로 수정
  • Loading branch information
kokoa322 committed Jul 30, 2022
1 parent 4e8144a commit f78d4a5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public class ReviewResponseDto {

private String name;

private String profile_image_url;
private String useImage;

private String myReview;

Expand All @@ -51,9 +51,9 @@ public ReviewResponseDto(Review review) {
}

public void userInfo(User user, User myUser){
this.email = user.getEmail();
this.name = user.getName();
this.profile_image_url = user.getProfileImageUrl();
this.email = user.getEmail();
this.name = user.getName();
this.useImage = user.getProfileImageUrl();

if(this.userId == myUser.getId()){
this.myReview = "Y";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public PageInfoResponseDto getReview(long storeId, String socialId, Pageable pag
.size(reviewList.getSize())
.reviewResponseDtoList(reviewResponseDtoList)
.hasNextPage(reviewList.isFirst() ? false : true)
.hasPreviousPage(reviewList.isLast() ? false : true)
.hasPreviousPage(!reviewList.isLast() ? false : true)
.build();


Expand Down

0 comments on commit f78d4a5

Please sign in to comment.