Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[2주차] 3장 코드 구성하기_박경철 #19

Closed
pkch93 opened this issue Feb 20, 2022 · 0 comments
Closed

[2주차] 3장 코드 구성하기_박경철 #19

pkch93 opened this issue Feb 20, 2022 · 0 comments
Assignees

Comments

@pkch93
Copy link
Contributor

pkch93 commented Feb 20, 2022

buckpal
|-- account
		|-- adapter
		|		|-- in
		|		|	|-- web
		|		|		|-- AccountController
		|		|		|
		|		|-- out
		|		|	|-- persistence
	        |		|		|-- AccountPersistenceAdapter
	        |		|		|-- SpringDataAccountRepository
		|		|
		|-- domain
		|		|-- Account
		|		|-- Activity
		|
		|-- application
				|-- SendMoneyService
				|
				|-- port
					|-- in
					|	|-- SendMoneyUseCase
					|
					|-- out
						|-- LoadAccountPort
						|-- UpdateAccountStatePort

위 구조에서 domain은 application에 있어야 하는게 아닐까 싶었는데요. 이렇게 생각한 이유는 저자가 말하는 것처럼 domain 모델을 다른 외부 의존성에서 보호하는 의도라면 application 패키지 내에 domain 패키지로 있어야 그 의도가 드러날꺼라고 생각했기 때문이에요.

다른 분들은 어떻게 생각하시나요??

@pkch93 pkch93 self-assigned this Feb 20, 2022
@pkch93 pkch93 closed this as completed Mar 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant