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 49e451d commit 4455960
Show file tree
Hide file tree
Showing 9 changed files with 50 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package com.core.adapter.`in`.web

class TestController {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package com.core.adapter.out.persistence.food

class FoodJpaEntity {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package com.core.adapter.out.persistence.food

interface FoodRepository {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package com.core.application.domain.food.model

class Food {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package com.core.application.domain.food.service

class FoodReadService {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package com.core.application.domain.food.service

class FoodWriteService {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package com.core.application.port.`in`

import com.core.application.port.`in`.dto.GetFoodDto

interface GetFoodUseCase {

fun execute(): GetFoodDto

data class GetFoodQuery(
val name: String
)
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package com.core.application.port.`in`.dto

data class GetFoodDto (
val name: String,
val price: Int,
val description: String
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package com.core.application.port.`in`.dto

data class RegisteFoodCommand(
val name: String,
val price: Int,
val description: String
)

0 comments on commit 4455960

Please sign in to comment.