first commit

This commit is contained in:
2026-02-26 14:04:18 +07:00
parent 57ac80a666
commit 4b7236493f
92 changed files with 4999 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
// using MyNewProjectName.Domain.Entities;
// using System.Security.Claims;
// namespace MyNewProjectName.Application.Interfaces.Common;
// public interface IJwtTokenGenerator
// {
// string GenerateAccessToken(User user, List<string> roles, Guid tenantId);
// string GenerateRefreshToken();
// ClaimsPrincipal GetPrincipalFromExpiredToken(string token);
// }

View File

@@ -0,0 +1,8 @@
namespace MyNewProjectName.Application.Interfaces.Common;
public interface IPasswordHasher
{
string Hash(string password);
bool Verify(string password, string hashedPassword);
}

View File

@@ -0,0 +1,12 @@
namespace MyNewProjectName.Application.Interfaces;
/// <summary>
/// Interface for getting current user information
/// </summary>
public interface ICurrentUserService
{
string? UserId { get; }
string? UserName { get; }
bool? IsAuthenticated { get; }
string? Role { get; }
}

View File

@@ -0,0 +1,10 @@
namespace MyNewProjectName.Application.Interfaces;
/// <summary>
/// Interface for date time operations (for testability)
/// </summary>
public interface IDateTimeService
{
DateTime Now { get; }
DateTime UtcNow { get; }
}