From f78d4a50ee9c2dd527279e3a7684a1140b254b9b Mon Sep 17 00:00:00 2001 From: kokoa322 Date: Sun, 31 Jul 2022 01:11:19 +0900 Subject: [PATCH] =?UTF-8?q?#12=20[update]=20=EB=A6=AC=EB=B7=B0=20=EB=A6=AC?= =?UTF-8?q?=EC=8A=A4=ED=8F=B0=EC=8A=A4=20KEY=20:=20hasNextPage=20true=20fa?= =?UTF-8?q?lse=20=EA=B0=92=20=EC=98=A4=EB=A5=98=20=EC=88=98=EC=A0=95=20?= =?UTF-8?q?=EB=A6=AC=EB=B7=B0=20=EB=A6=AC=EC=8A=A4=ED=8F=B0=EC=8A=A4=20KEY?= =?UTF-8?q?=20:=20profile=5Fimage=5Furl=20->=20useImage=20=EB=A1=9C=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/mpnp/baechelin/review/dto/ReviewResponseDto.java | 8 ++++---- .../com/mpnp/baechelin/review/service/ReviewService.java | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/mpnp/baechelin/review/dto/ReviewResponseDto.java b/src/main/java/com/mpnp/baechelin/review/dto/ReviewResponseDto.java index de04d3e..28abb64 100644 --- a/src/main/java/com/mpnp/baechelin/review/dto/ReviewResponseDto.java +++ b/src/main/java/com/mpnp/baechelin/review/dto/ReviewResponseDto.java @@ -24,7 +24,7 @@ public class ReviewResponseDto { private String name; - private String profile_image_url; + private String useImage; private String myReview; @@ -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"; diff --git a/src/main/java/com/mpnp/baechelin/review/service/ReviewService.java b/src/main/java/com/mpnp/baechelin/review/service/ReviewService.java index 7d44f5c..d9e717f 100644 --- a/src/main/java/com/mpnp/baechelin/review/service/ReviewService.java +++ b/src/main/java/com/mpnp/baechelin/review/service/ReviewService.java @@ -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();