Skip to content

Commit

Permalink
Merge pull request #183 from 9oormthon-univ/fix/util
Browse files Browse the repository at this point in the history
Fix/util
  • Loading branch information
HyunWoo9930 authored Nov 29, 2024
2 parents 0dc3c7c + 4de12c8 commit 6090d09
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
) {
}
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
}
}

0 comments on commit 6090d09

Please sign in to comment.