unify few extra services

This commit is contained in:
honzapatCZ 2024-09-15 19:47:20 +02:00
parent abfa14de23
commit 1d7e81c71d
7 changed files with 9 additions and 10 deletions

View File

@ -1,11 +1,10 @@
using BlazorTemplater;
using Microsoft.AspNetCore.Components;
using Microsoft.AspNetCore.Mvc;
using NejAccountingAPI.Services.Email;
using PuppeteerSharp;
using NejCommon.Services.Email;
using System.Runtime.CompilerServices;
namespace NejAccountingAPI.Emails
namespace NejCommon.Emails
{
public abstract class EmailBase<T1, T2> : ComponentBase where T1 : EmailBase<T1, T2>
{

View File

@ -1,4 +1,4 @@
@namespace NejAccountingAPI.Emails
@namespace NejCommon.Emails
@inherits EmailBase<GeneralMessage, GeneralMessage.GeneralMessageData>

View File

@ -1 +1 @@
@namespace NejAccountingAPI.Emails
@namespace NejCommon.Emails

View File

@ -1,7 +1,7 @@
using System.Linq.Expressions;
using Microsoft.AspNetCore.Mvc;
namespace NejAccountingAPI.Models;
namespace NejCommon.Models;
public class DateOnlyFrame
{

View File

@ -1,7 +1,7 @@
using System.Linq.Expressions;
using NejCommon.Utils;
namespace NejAccountingAPI.Models;
namespace NejCommon.Models;
public class DateTimeFrame
{
public DateTimeFrame(){

View File

@ -1,8 +1,8 @@
using System.Net.Mail;
using System.Reflection;
using NejAccountingAPI.Emails;
using NejCommon.Emails;
namespace NejAccountingAPI.Services.Email;
namespace NejCommon.Services.Email;
public interface IEmailService
{

View File

@ -4,7 +4,7 @@ using MailKit.Net.Imap;
using MailKit.Net.Smtp;
using MimeKit;
namespace NejAccountingAPI.Services.Email;
namespace NejCommon.Services.Email;
public class SMTPService : IEmailService
{