From 4de12c8979c8fa164d359876a3e78fcc30950f20 Mon Sep 17 00:00:00 2001 From: HyunWoo9930 Date: Fri, 29 Nov 2024 16:56:35 +0900 Subject: [PATCH] =?UTF-8?q?fix=20:=20=EC=B9=B4=EC=B9=B4=EC=98=A4=ED=8E=98?= =?UTF-8?q?=EC=9D=B4=20url=20=EC=88=98=EC=A0=95,=20category=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../payment/dto/response/ReadyResponse.java | 4 +- .../dto/response/SearchStoresResponse.java | 57 ++++++++++--------- 2 files changed, 33 insertions(+), 28 deletions(-) diff --git a/src/main/java/com/jangburich/domain/payment/dto/response/ReadyResponse.java b/src/main/java/com/jangburich/domain/payment/dto/response/ReadyResponse.java index 181dbb5..17540d2 100644 --- a/src/main/java/com/jangburich/domain/payment/dto/response/ReadyResponse.java +++ b/src/main/java/com/jangburich/domain/payment/dto/response/ReadyResponse.java @@ -4,6 +4,8 @@ public record ReadyResponse( String tid, String next_redirect_pc_url, String android_app_scheme, - String ios_app_scheme + String ios_app_scheme, + String next_redirect_app_url, + String next_redirect_mobile_url ) { } diff --git a/src/main/java/com/jangburich/domain/store/dto/response/SearchStoresResponse.java b/src/main/java/com/jangburich/domain/store/dto/response/SearchStoresResponse.java index acf6979..2e8b2dd 100644 --- a/src/main/java/com/jangburich/domain/store/dto/response/SearchStoresResponse.java +++ b/src/main/java/com/jangburich/domain/store/dto/response/SearchStoresResponse.java @@ -2,37 +2,40 @@ import com.jangburich.domain.store.domain.Category; import com.querydsl.core.annotations.QueryProjection; + import lombok.Builder; @Builder public record SearchStoresResponse( - Long storeId, - String name, - Double latitude, - Double longitude, - Boolean isFavorite, - Category category, - Double distance, - String businessStatus, - String closeTime, - String phoneNumber, - String imageUrl + Long storeId, + String name, + Double latitude, + Double longitude, + Boolean isFavorite, + String category, + Double distance, + String businessStatus, + String closeTime, + String phoneNumber, + String imageUrl ) { - @QueryProjection - public SearchStoresResponse(Long storeId, String name, Double latitude, Double longitude, Boolean isFavorite, - Category category, Double distance, String businessStatus, String closeTime, - String phoneNumber, String imageUrl) { - this.storeId = storeId; - this.name = name; - this.latitude = latitude; - this.longitude = longitude; - this.isFavorite = isFavorite; - this.category = category; - this.distance = distance; - this.businessStatus = businessStatus; - this.closeTime = closeTime; - this.phoneNumber = phoneNumber; - this.imageUrl = imageUrl; - } + @QueryProjection + public SearchStoresResponse(Long storeId, String name, Double latitude, Double longitude, Boolean isFavorite, + Category category, Double distance, String businessStatus, String closeTime, + String phoneNumber, String imageUrl) { + this( + storeId, + name, + latitude, + longitude, + isFavorite, + category.getDisplayName(), + distance, + businessStatus, + closeTime, + phoneNumber, + imageUrl + ); + } } \ No newline at end of file