当前位置:网站首页>Business facade and business rule

Business facade and business rule

2020-11-07 18:55:00 Airship

Business Facade and Business Rule All are Business Logic The fine layers of , They work together to accomplish specific business logic processing .

but Business Facade yes Business Rule The previous level of , Responsible for receiving Web Service Or both Web UI Request , And verify the correctness of the request , Whether the parameter format is legal , After all the verification is finished , Then give the request to Business Rule layer , Mainly complete the right Business Rule Some checks before calling , On receiving Business Rule After the processing result of the layer , According to the different request client format the result to the request client's desired format .

meanwhile , Some common simple judgment processing can also be handed over to Business Facade Layer handles , Not in Business Rule Layer implementation , In order to achieve a clearer structure . Each department has its own rules , It is conducive to the extension and maintenance of the architecture . in addition , If it's a small project , You can merge them into one level .

I'll just take it this way :Business Facade It's about the client ,Business Rule It has nothing to do with the client .

版权声明
本文为[Airship]所创,转载请带上原文链接,感谢