Skip to content

Commit

Permalink
chore : change response type (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
kshired authored May 24, 2024
1 parent c8b029f commit 3d31dc9
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<Keyword>,
val createdAt: String,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Keyword>
)

0 comments on commit 3d31dc9

Please sign in to comment.