KaloyanYosifov / hkb

The program to contain all needed stuff (Holy Kern Base)
0 stars 0 forks source link

Create Reminder actions and query #5

Closed KaloyanYosifov closed 2 months ago

KaloyanYosifov commented 3 months ago

The way we are going to be able to create reminders is using "actions". Each action will be a function that interacts with whatever we have as a storage mechanism (Has to be abstracted).

For querying data that will be the same.


The pattern is similar to CQRS (Command Query Responsibility Segregation). This can fit nicely, we have action functions to CUD (Create/Update/Delete) and query functions fetching the data. (With a generic DTO behind the scenes called Reminder, but when calling an action the data passed would be a CreateReminderData)

KaloyanYosifov commented 2 months ago

Already implemented