This is where such a problem occurs, so the design pattern based on the MVC model view controller is introduced in the middle layer. The model layer (Model) is used to implement business logic, the display layer (View) is used to display the user interface, and the controller (Controller) is responsible for the control relationship between the display layer and the model layer.