ExpDev07 / coronavirus-tracker-api

🦠 A simple and fast (< 200ms) API for tracking the global coronavirus (COVID-19, SARS-CoV-2) outbreak. It's written in python using the 🔥 FastAPI framework. Supports multiple sources!
https://coronavirus-tracker-api.herokuapp.com
GNU General Public License v3.0
1.59k stars 323 forks source link

aggregate date and history #406

Closed JoyBiao closed 3 years ago

JoyBiao commented 3 years ago

I created a Date class as the aggregate root. When we want to deal with date, we can have a reference to this class and call its method. The History class is also in the aggregate, only the Date class should have a reference to it. So, its implementation is hidden. It deals with everything related to history.