In the last article, although the computer assembly between Lao Wang and Xiao Wang ended perfectly, the quarrel between Lao Wang and Xiao Wang did not end. Lao Wang decided to kick Xiao Wang out and rent out the house where Xiao Wang lived. The rent was used to cover the cost of the game book.
Lao Wang spent a lot of effort to figure out the rules of various rental platforms and released housing information, and then the neighbor reminded him: renting out the house does not mean lying down to collect rent, one day the tenant put forward some additional requirements, within the scope of the contract, you should also try to meet them (in order to understand, of course, reality does not exist), after the house is rented out, you have to coordinate with the property.
① I need to understand the whole process of renting. There is a serious coupling between my own business and renting.
I had to get involved in some of the demands made by ② tenants, and I had to change my own schedule.
The first point is to decouple the business from the function, and the business layer focuses on the business, such as the network interface request. The business layer only needs to know which interface request method to call, but not how the interface request is initiated.
Second, create a section and add some general additional operations to this section, such as annotation parsing, log reporting, etc., to avoid writing these general operations in each interface method.