2, in the same interface in public when there are two logical, through incoming parameters to control, then is to write an interface that internal control or write two interfaces, two different logical go?
The above two questions what logic judgment standard? According to the actual application scenario or need? So what is the judgment?
CodePudding user response:
1. In a system of different endif we need to separate out the backgroundReply:
If you need to develop,
2, in the same interface in public when there are two logical
Reply:
You mean an API, and a variety of execution strategy? If you can refer to design pattern.
CodePudding user response:
The above two questions what logic judgment standard? According to the actual application scenario or need? So what is the judgment?Reply:
There is no universal laws and principles, particular case is particular analysis