diff --git a/backend/src/main/kotlin/me/sipethon/travel/interfaces/response/SearchHistoryDetailResponse.kt b/backend/src/main/kotlin/me/sipethon/travel/interfaces/response/SearchHistoryDetailResponse.kt index d5bec95..ce79201 100644 --- a/backend/src/main/kotlin/me/sipethon/travel/interfaces/response/SearchHistoryDetailResponse.kt +++ b/backend/src/main/kotlin/me/sipethon/travel/interfaces/response/SearchHistoryDetailResponse.kt @@ -7,9 +7,9 @@ data class SearchHistoryDetailResponse( val id: Long, val thumbnail: String, val location: String, - val duration: Int, - val people: Int, - val budget: Int?, + val duration: String, + val people: String, + val budget: String?, val groupType: GroupType?, val keywords: List, val createdAt: String, diff --git a/backend/src/main/kotlin/me/sipethon/travel/interfaces/response/SearchHistoryResponse.kt b/backend/src/main/kotlin/me/sipethon/travel/interfaces/response/SearchHistoryResponse.kt index 94dc49a..ca1f309 100644 --- a/backend/src/main/kotlin/me/sipethon/travel/interfaces/response/SearchHistoryResponse.kt +++ b/backend/src/main/kotlin/me/sipethon/travel/interfaces/response/SearchHistoryResponse.kt @@ -13,9 +13,9 @@ data class SearchHistoryResponse( id = travelPlan.id, thumbnail = travelPlan.thumbnail, location = travelPlan.location, - duration = travelPlan.duration, - people = travelPlan.people, - budget = travelPlan.budget, + duration = "${travelPlan.duration}박 ${travelPlan.duration + 1}일", + people = "${travelPlan.people}명", + budget = travelPlan.budget?.let { "${it}만원" }, groupType = travelPlan.groupType, keywords = keywords.map { it.keyword }, createdAt = DateTimeFormatter.ofPattern("M월 d일, a h시").format(travelPlan.createdAt), diff --git a/backend/src/main/kotlin/me/sipethon/travel/interfaces/response/TravelPlanResponse.kt b/backend/src/main/kotlin/me/sipethon/travel/interfaces/response/TravelPlanResponse.kt index a23f5cf..ebea248 100644 --- a/backend/src/main/kotlin/me/sipethon/travel/interfaces/response/TravelPlanResponse.kt +++ b/backend/src/main/kotlin/me/sipethon/travel/interfaces/response/TravelPlanResponse.kt @@ -18,10 +18,10 @@ data class TravelPlanResponse( thumbnail = travelPlan.thumbnail, userInput = UserInputResponse( location = travelPlan.location, - duration = travelPlan.duration, - people = travelPlan.people, + duration = "${travelPlan.duration}박 ${travelPlan.duration + 1}일", + people = "${travelPlan.people}명", groupType = travelPlan.groupType, - budget = travelPlan.budget, + budget = travelPlan.budget?.let { "${it}만원" }, keywords = travelPlanKeywords.map { it.keyword } ), budget = BudgetResponse( diff --git a/backend/src/main/kotlin/me/sipethon/travel/interfaces/response/UserInputResponse.kt b/backend/src/main/kotlin/me/sipethon/travel/interfaces/response/UserInputResponse.kt index ee8b23d..45b2041 100644 --- a/backend/src/main/kotlin/me/sipethon/travel/interfaces/response/UserInputResponse.kt +++ b/backend/src/main/kotlin/me/sipethon/travel/interfaces/response/UserInputResponse.kt @@ -5,9 +5,9 @@ import me.sipethon.travel.domain.Keyword data class UserInputResponse( val location: String, - val duration: Int, - val people: Int, - val budget: Int?, + val duration: String, + val people: String, + val budget: String?, val groupType: GroupType?, val keywords: List )