Open ilhesam opened 1 year ago
Update: I talked with @pournasserian and We changed the plan. First, we implement Template Engine without any dependent to Sending Notifications. Because, Template Rendering is a general discussion and does not lead only to Sending Notifications. Follow the issue: https://github.com/ubeac/ubeac-api/issues/158
One of the needs of any software is sending notifications like email to the users. We want to make implementation of notification services easier for developers.
Use cases:
We have to handle two purposes in this phase:
uBeac.Core.Notification.Abstractions
We should have a class for the notifications:
And the notification provider interfaces:
uBeac.Core.Notification.Templates.Abstractions
Also, we should create a repository and service with the CRUD methods for notification templates + template renderer interface:
And, we should implement the interfaces in the another packages:
uBeac.Core.Notification.Templates.Repositories.MongoDB
uBeac.Core.Notification.Templates.Services
uBeac.Core.Notification.Templates.Renderers.Mustache
uBeac.Core.Notification
Finally, We should have a notification service like this:
Registration
The developers should can register it easily! I think the following structure is good: