Skip to content

Commit

Permalink
add: added field schedule type
Browse files Browse the repository at this point in the history
  • Loading branch information
thguss committed Oct 3, 2024
1 parent 916b4ed commit 39fd624
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ class PlaceService(
ScheduleTypeGroupResponse(
scheduleId = scheduleId.getValue(),
scheduleName = schedule.name,
type = schedule.type,
places = places.map { place -> PlaceResponse(place = place) },
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package com.piikii.application.port.input.dto.response
import com.piikii.application.domain.generic.ThumbnailLinks
import com.piikii.application.domain.place.Origin
import com.piikii.application.domain.place.Place
import com.piikii.application.domain.schedule.ScheduleType
import io.swagger.v3.oas.annotations.media.Schema
import java.util.UUID

Expand Down Expand Up @@ -67,6 +68,8 @@ data class ScheduleTypeGroupResponse(
val scheduleId: Long?,
@field:Schema(description = "일정 이름", example = "술 2차")
val scheduleName: String,
@field:Schema(description = "스케줄 타입")
val type: ScheduleType,
@field:Schema(description = "해당 일정 타입에 속한 장소 목록")
val places: List<PlaceResponse>,
)

0 comments on commit 39fd624

Please sign in to comment.