there are several problems in the process of learning architecture:
- some Service layers will call other Dao layers, for example, UserService will call UserPositionDao
UserBookDao - some Service layers will call other Service layers, for example, UserService will call UserAppleService
UserPencilService - Department Controller layer calls multiple Service layers
according to the idea of hierarchical design, this kind of design is unreasonable. A great god said to use Facade layering to avoid it, so I changed it to
.- A Service can only call one Dao, and cannot exchange Service with each other
- A Facade can call different Service
- A Controller can only call one Facade, and cannot call Service
here comes the question of whether all the methods I wrote in UserService have to be implemented again in UserFacade, otherwise Controller will not be able to penetrate Facade to use Service methods.
unless Facade is equal to Service, Facade is only a special Service, and Controller can only call its own Facade and Service. at most
.is that so?