1) The top layer is the "view layer" that directly targets end users ). It is the operation interface provided to the user and the shell of the program.
2) the bottom layer is the core "data layer" (model), that is, the data or information that the program needs to operate on.
3) The intermediate layer is the "control layer" (Controller). It selects data in the "data layer" based on the instructions you input from the "view layer, then perform corresponding operations to generate the final result.
Web: data assembly, call service
Service: business layer: only perform business operations, and then call Dao (the best Interface) (inheriting the business base class)
Interface: add, delete, modify, and query list
Dosave ();
Dodelete ();
Doupdate ();
Dosearch ();
Dolist ()
Dao: only perform data operations (preferably through interfaces)