Kamaropoulos / COVID19Py

A tiny Python package for easy access to up-to-date Coronavirus (COVID-19, SARS-CoV-2) cases data.
https://pypi.org/project/COVID19Py/
GNU General Public License v3.0
84 stars 57 forks source link

Aggregate 1 #84

Closed guolingjian closed 2 years ago

guolingjian commented 3 years ago

This is a use of aggregate in the original file. The original file data can be viewed by everyone. Now the project is divided into two classes, and all data will be encapsulated. Take the request entity as the aggregate root. That is to put the data which obtained from the website into a new class named getDATA, and the user will no longer be able to view or modify the data.