Fix : 수정

This commit is contained in:
lsh9672
2025-06-13 01:20:50 +09:00
parent 60ee715d3e
commit a2fa6870e5
4 changed files with 24 additions and 6 deletions
@@ -87,11 +87,11 @@ public class StoreRecommendInteractor implements StoreRecommendUseCase {
List<RecommendStoreResponse> responses = convertToResponseList(pagedStores);
return PageResponse.of(responses, pageable.getPageNumber(), pageable.getPageSize(), stores.size());
return PageResponse.of(responses, pageable.getPageNumber(), pageable.getPageSize(), Long.valueOf(stores.size()));
} catch (Exception e) {
log.error("위치 기반 매장 추천 실패: lat={}, lng={}", latitude, longitude, e);
return PageResponse.of(getDefaultRecommendations(), 0, pageable.getPageSize(), 0);
return PageResponse.of(getDefaultRecommendations(), 0, pageable.getPageSize(), 0L);
}
}
@@ -217,7 +217,7 @@ public class StoreRecommendInteractor implements StoreRecommendUseCase {
.address("서울시 강남구 테헤란로 123")
.category("한식")
.rating(4.5)
.distance(500)
.distance(500.0)
.tags(Arrays.asList("맛있는", "친절한"))
.recommendReason("인기 매장입니다")
.build()
@@ -57,7 +57,7 @@ public class TasteAnalysisInteractor implements TasteAnalysisUseCase {
.categoryScores(categoryScores)
.preferredTags(profile.getPreferredTags())
.pricePreference(profile.getPricePreference())
.distancePreference(profile.getDistancePreference())
.distancePreference((double)profile.getDistancePreference())
.analysisDate(profile.getUpdatedAt())
.build();
}
@@ -26,8 +26,8 @@ public class StoreDetailResponse {
@Schema(description = "평점", example = "4.5")
private Double rating;
@Schema(description = "거리(미터)", example = "500")
private Integer distance;
@Schema(description = "거리(미터)", example = "500.0") // Double로 수정
private Double distance;
@Schema(description = "태그 목록", example = "[\"맛집\", \"혼밥\", \"가성비\"]")
private List<String> tags;