This commit is contained in:
Thanakarn Klangkasame
2025-09-30 11:01:02 +07:00
commit 92e614674c
182 changed files with 9596 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
using AMREZ.EOP.Contracts.DTOs.Authentications.AddEmailIdentity;
namespace AMREZ.EOP.Abstractions.Applications.UseCases.Authentications;
public interface IAddEmailIdentityUseCase
{
Task<bool> ExecuteAsync(AddEmailIdentityRequest request, CancellationToken ct = default);
}

View File

@@ -0,0 +1,8 @@
using AMREZ.EOP.Contracts.DTOs.Authentications.ChangePassword;
namespace AMREZ.EOP.Abstractions.Applications.UseCases.Authentications;
public interface IChangePasswordUseCase
{
Task<bool> ExecuteAsync(ChangePasswordRequest request, CancellationToken ct = default);
}

View File

@@ -0,0 +1,8 @@
using AMREZ.EOP.Contracts.DTOs.Authentications.DisableMfa;
namespace AMREZ.EOP.Abstractions.Applications.UseCases.Authentications;
public interface IDisableMfaUseCase
{
Task<bool> ExecuteAsync(DisableMfaRequest request, CancellationToken ct = default);
}

View File

@@ -0,0 +1,8 @@
using AMREZ.EOP.Contracts.DTOs.Authentications.EnableTotp;
namespace AMREZ.EOP.Abstractions.Applications.UseCases.Authentications;
public interface IEnableTotpUseCase
{
Task<EnableTotpResponse?> ExecuteAsync(EnableTotpRequest request, CancellationToken ct = default);
}

View File

@@ -0,0 +1,8 @@
using AMREZ.EOP.Contracts.DTOs.Authentications.Login;
namespace AMREZ.EOP.Abstractions.Applications.UseCases.Authentications;
public interface ILoginUseCase
{
Task<LoginResponse?> ExecuteAsync(LoginRequest request, CancellationToken ct = default);
}

View File

@@ -0,0 +1,8 @@
using AMREZ.EOP.Contracts.DTOs.Authentications.LogoutAll;
namespace AMREZ.EOP.Abstractions.Applications.UseCases.Authentications;
public interface ILogoutAllUseCase
{
Task<int> ExecuteAsync(LogoutAllRequest request, CancellationToken ct = default);
}

View File

@@ -0,0 +1,8 @@
using AMREZ.EOP.Contracts.DTOs.Authentications.Logout;
namespace AMREZ.EOP.Abstractions.Applications.UseCases.Authentications;
public interface ILogoutUseCase
{
Task<bool> ExecuteAsync(LogoutRequest request, CancellationToken ct = default);
}

View File

@@ -0,0 +1,8 @@
using AMREZ.EOP.Contracts.DTOs.Authentications.Register;
namespace AMREZ.EOP.Abstractions.Applications.UseCases.Authentications;
public interface IRegisterUseCase
{
Task<RegisterResponse?> ExecuteAsync(RegisterRequest request, CancellationToken ct = default);
}

View File

@@ -0,0 +1,8 @@
using AMREZ.EOP.Contracts.DTOs.Authentications.VerifyEmail;
namespace AMREZ.EOP.Abstractions.Applications.UseCases.Authentications;
public interface IVerifyEmailUseCase
{
Task<bool> ExecuteAsync(VerifyEmailRequest request, CancellationToken ct = default);
}