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

有些代码实现和设计对应不上 #22

Open
lppppppf opened this issue Sep 25, 2023 · 1 comment
Open

有些代码实现和设计对应不上 #22

lppppppf opened this issue Sep 25, 2023 · 1 comment

Comments

@lppppppf
Copy link

lppppppf commented Sep 25, 2023

领域层不应该直接依赖基础层,应该在domain定义eventPublisher的接口,基础层实现,两者依赖共同的抽象。
另外建议项目创建为多module的格式,强制规定好依赖关系。

截屏2023-09-25 10 43 40

WechatIMG12

@MakenChan
Copy link

因为作者把,repository的实现放在了领域层,只是是domain下建立了一个persistence的包,按书上来讲这是不对的,实现类应该在基础设施层,repository接口在domain层才对

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants