feat(notification): add admin rest management and deletion
Add revision-safe service and template APIs, channel mapping, and validated admin controls. Ref: IT-1601
This commit is contained in:
+19
@@ -0,0 +1,19 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using HrynCo.NotificationService.DAL.Abstract.Providers;
|
||||
|
||||
namespace HrynCo.NotificationService.Web.Controllers.Api.EmailChannels;
|
||||
|
||||
public sealed class SmtpChannelSettingsDto
|
||||
{
|
||||
public EmailChannelType EmailChannelType => EmailChannelType.Smtp;
|
||||
[Required]
|
||||
public string Host { get; init; } = "";
|
||||
[Range(1, 65535)]
|
||||
public int Port { get; init; } = 587;
|
||||
public string Username { get; init; } = "";
|
||||
public string Password { get; init; } = "";
|
||||
public bool UseSsl { get; init; } = true;
|
||||
[Required, EmailAddress]
|
||||
public string FromEmail { get; init; } = "";
|
||||
public string FromName { get; init; } = "";
|
||||
}
|
||||
Reference in New Issue
Block a user