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