You could put all of the operations into a single service and have a simple solution.
您可以将所有这些操作放入到一个单一的服务中,拥有一个单一的解决方案。
The service interfaces are put into a third-party broker, which helps you manage the interfaces better, and enables faster and more flexible coupling and decoupling of applications.
服务接口放在第三方代理中,这有助于您更好地管理接口,并支持更快速和更灵活的应用程序耦合和分离。
If the behavior is removed from the object and put into a service, the object then becomes a mere holder for data.
如果把行为从对象转移到服务中,对象就成了纯粹的数据容器。
应用推荐