public interface IApplicationService
远离业务模型核心层.
应用层,负责组织业务场景,编排业务,隔离场景对领域层的差异;领域层,实现具体的业务逻辑、规则,为应用层提供无差别的服务能力.
如果没有应用层,会导致领域层与具体场景绑定,复用性大大降低.
Application logic contains the workflow steps required to fulfill a business use case.
The application services don’t do any work, but they understand who to talk to to complete the task.
Coordinating the retrieval of domain objects from a data store, delegating work to them, and then saving the updated state is the responsibility of the application service layer.
Copyright © 2020–2023. All rights reserved.