From 39fd624592edc6357ea0fbd83145bd1787f3af72 Mon Sep 17 00:00:00 2001 From: thguss Date: Thu, 3 Oct 2024 11:41:15 +0900 Subject: [PATCH] add: added field schedule type --- .../kotlin/com/piikii/application/domain/place/PlaceService.kt | 1 + .../application/port/input/dto/response/PlaceResponse.kt | 3 +++ 2 files changed, 4 insertions(+) diff --git a/piikii-application/src/main/kotlin/com/piikii/application/domain/place/PlaceService.kt b/piikii-application/src/main/kotlin/com/piikii/application/domain/place/PlaceService.kt index 64db0452..b72b39ca 100644 --- a/piikii-application/src/main/kotlin/com/piikii/application/domain/place/PlaceService.kt +++ b/piikii-application/src/main/kotlin/com/piikii/application/domain/place/PlaceService.kt @@ -59,6 +59,7 @@ class PlaceService( ScheduleTypeGroupResponse( scheduleId = scheduleId.getValue(), scheduleName = schedule.name, + type = schedule.type, places = places.map { place -> PlaceResponse(place = place) }, ) } diff --git a/piikii-application/src/main/kotlin/com/piikii/application/port/input/dto/response/PlaceResponse.kt b/piikii-application/src/main/kotlin/com/piikii/application/port/input/dto/response/PlaceResponse.kt index c1aca0a2..b66df0f1 100644 --- a/piikii-application/src/main/kotlin/com/piikii/application/port/input/dto/response/PlaceResponse.kt +++ b/piikii-application/src/main/kotlin/com/piikii/application/port/input/dto/response/PlaceResponse.kt @@ -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 @@ -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, )