From 2cba4335d2574c7856f9c4e794be74078adffc51 Mon Sep 17 00:00:00 2001 From: kyubeomHan Date: Fri, 16 Aug 2024 17:30:14 +0900 Subject: [PATCH] =?UTF-8?q?#2=20=ED=97=A5=EC=82=AC=EA=B3=A0=EB=82=A0=20?= =?UTF-8?q?=EC=95=84=ED=82=A4=ED=85=8D=EC=B3=90=20=EC=8B=9C=EB=B2=94=20?= =?UTF-8?q?=EC=A0=81=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../kotlin/com/core/adapter/in/web/TestController.kt | 4 ++++ .../application/domain/food/service/FoodReadService.kt | 10 +++++++++- .../com/core/application/port/in/GetFoodUseCase.kt | 2 +- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/core/src/main/kotlin/com/core/adapter/in/web/TestController.kt b/core/src/main/kotlin/com/core/adapter/in/web/TestController.kt index 0649694..4a0d285 100644 --- a/core/src/main/kotlin/com/core/adapter/in/web/TestController.kt +++ b/core/src/main/kotlin/com/core/adapter/in/web/TestController.kt @@ -1,4 +1,8 @@ package com.core.adapter.`in`.web +import com.core.application.port.`in`.GetFoodUseCase +import com.core.application.port.out.GetFoodPort + class TestController { +// var GetFoodUseCase: GetFoodUseCase } \ No newline at end of file diff --git a/core/src/main/kotlin/com/core/application/domain/food/service/FoodReadService.kt b/core/src/main/kotlin/com/core/application/domain/food/service/FoodReadService.kt index 3dd0673..5a0ee14 100644 --- a/core/src/main/kotlin/com/core/application/domain/food/service/FoodReadService.kt +++ b/core/src/main/kotlin/com/core/application/domain/food/service/FoodReadService.kt @@ -1,4 +1,12 @@ package com.core.application.domain.food.service -class FoodReadService { +import com.core.application.port.`in`.GetFoodUseCase +import com.core.application.port.`in`.dto.GetFoodDto + +class FoodReadService : GetFoodUseCase { + override fun execute(getFoodQuery: GetFoodUseCase.GetFoodQuery): GetFoodDto { + TODO("Not yet implemented") + } + + } \ No newline at end of file diff --git a/core/src/main/kotlin/com/core/application/port/in/GetFoodUseCase.kt b/core/src/main/kotlin/com/core/application/port/in/GetFoodUseCase.kt index 7d0462b..eaf7b0d 100644 --- a/core/src/main/kotlin/com/core/application/port/in/GetFoodUseCase.kt +++ b/core/src/main/kotlin/com/core/application/port/in/GetFoodUseCase.kt @@ -4,7 +4,7 @@ import com.core.application.port.`in`.dto.GetFoodDto interface GetFoodUseCase { - fun execute(): GetFoodDto + fun execute(getFoodQuery: GetFoodQuery): GetFoodDto data class GetFoodQuery( val name: String