ouchuangxin / leave-sample

本代码来源于极客时间《DDD实战》专栏。

Home Page:http://gk.link/a/10nH6

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

感觉作者对DomainService有误解

rocgao opened this issue · comments

我的理解,DomainService一般是用来实现业务逻辑的,协调跨聚合的业务逻辑。
但作者在这里,把DomainService当成ApplicationService。比如,LeaveDomainService.submitApproval方法,基本与业务逻辑无关,还引用@transactional,Repository,使得Domain项目引用了技术相关的概念。