zhanwen / HotelManagement

酒店管理系统
49 stars 31 forks source link

Code improvement with Facade Design Pattern #6

Open juarseve opened 9 months ago

juarseve commented 9 months ago

Hello! As a suggestion to improve code maintainability I recommend using facade design pattern in classes OrderServiceAction and SaveOrderAction, creating a facade class that handle requests in methods from corresponding classes, replacing the ServletActionContext dependency. Thus eliminating repetitive code image