feat: добавил отправку уведомлений по почте
🚀 Create and publish a Docker image / Detect changes in backend and frontend (push) Successful in 10s
🚀 Create and publish a Docker image / Build & publish backend image (push) Successful in 1m17s
🚀 Create and publish a Docker image / Build & publish frontend image (push) Successful in 12s
🚀 Create and publish a Docker image / Update stack on Portainer (push) Successful in 6s
🚀 Create and publish a Docker image / Detect changes in backend and frontend (push) Successful in 10s
🚀 Create and publish a Docker image / Build & publish backend image (push) Successful in 1m17s
🚀 Create and publish a Docker image / Build & publish frontend image (push) Successful in 12s
🚀 Create and publish a Docker image / Update stack on Portainer (push) Successful in 6s
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
namespace UniVerse.Application.DTOs.Notifications;
|
||||
|
||||
public static class NotificationChannels
|
||||
{
|
||||
public const string Email = "email";
|
||||
}
|
||||
|
||||
public record NotificationMessage(
|
||||
string Channel,
|
||||
string Recipient,
|
||||
string Subject,
|
||||
string Body,
|
||||
string? RecipientName = null,
|
||||
IReadOnlyDictionary<string, string>? Metadata = null);
|
||||
|
||||
public record SendNotificationRequest(
|
||||
string Channel,
|
||||
string Recipient,
|
||||
string Subject,
|
||||
string Body,
|
||||
string? RecipientName = null,
|
||||
IReadOnlyDictionary<string, string>? Metadata = null);
|
||||
|
||||
public record ScheduleNotificationRequest(
|
||||
string Channel,
|
||||
string Recipient,
|
||||
string Subject,
|
||||
string Body,
|
||||
DateTimeOffset SendAt,
|
||||
string? RecipientName = null,
|
||||
IReadOnlyDictionary<string, string>? Metadata = null);
|
||||
|
||||
public record ScheduledNotificationResponse(string JobId, DateTimeOffset SendAt);
|
||||
Reference in New Issue
Block a user