Skip to content

Commit

Permalink
#2 헥사고날 아키텍쳐 시범 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
kyubeomHan committed Aug 16, 2024
1 parent 5d5f9d7 commit 2cba433
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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
}
Original file line number Diff line number Diff line change
@@ -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")
}


}
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2cba433

Please sign in to comment.