Dto
This commit is contained in:
8
StandManager.Domain/DTO/EmailConfig.cs
Normal file
8
StandManager.Domain/DTO/EmailConfig.cs
Normal file
@ -0,0 +1,8 @@
|
||||
namespace StandManager.Domain.DTO;
|
||||
|
||||
public class EmailConfig
|
||||
{
|
||||
public string From { get; set; }
|
||||
public string ServerAddress { get; set; }
|
||||
public string MailSplitChar { get; set; }
|
||||
}
|
||||
@ -7,11 +7,4 @@ public class Email
|
||||
public List<string>? Cc { get; set; }
|
||||
public string Subject { get; set; }
|
||||
public string Body { get; set; }
|
||||
}
|
||||
|
||||
public class EmailConfig
|
||||
{
|
||||
public string From { get; set; }
|
||||
public string ServerAddress { get; set; }
|
||||
public string MailSplitChar { get; set; }
|
||||
}
|
||||
@ -2,6 +2,7 @@ using System.Net.Http.Headers;
|
||||
using System.Net.Http.Json;
|
||||
using System.Text;
|
||||
using System.Text.Json;
|
||||
using StandManager.Domain.DTO;
|
||||
using StandManager.MailProcessor.Mail;
|
||||
using StandManager.Service.Interfaces;
|
||||
|
||||
|
||||
@ -3,6 +3,7 @@ using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Hosting;
|
||||
using StandManager.Domain.DTO;
|
||||
using StandManager.Infrastructure.DAL.Context;
|
||||
using StandManager.MailProcessor.Mail;
|
||||
using StandManager.Service;
|
||||
|
||||
@ -8,5 +8,10 @@
|
||||
"Microsoft.AspNetCore": "Warning"
|
||||
}
|
||||
},
|
||||
"AllowedHosts": "*"
|
||||
"AllowedHosts": "*",
|
||||
"EmailConfig": {
|
||||
"From": "",
|
||||
"ServerAddress": "",
|
||||
"MailSplitChar": "#"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user