Fase 1: Inicialización del Backend .NET 10, Configuración de Dapper, Autenticación JWT y Entidades Base
This commit is contained in:
6
src/SIGCM.Application/Class1.cs
Normal file
6
src/SIGCM.Application/Class1.cs
Normal file
@@ -0,0 +1,6 @@
|
||||
namespace SIGCM.Application;
|
||||
|
||||
public class Class1
|
||||
{
|
||||
|
||||
}
|
||||
7
src/SIGCM.Application/DTOs/LoginDto.cs
Normal file
7
src/SIGCM.Application/DTOs/LoginDto.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
namespace SIGCM.Application.DTOs;
|
||||
|
||||
public class LoginDto
|
||||
{
|
||||
public required string Username { get; set; }
|
||||
public required string Password { get; set; }
|
||||
}
|
||||
6
src/SIGCM.Application/Interfaces/IAuthService.cs
Normal file
6
src/SIGCM.Application/Interfaces/IAuthService.cs
Normal file
@@ -0,0 +1,6 @@
|
||||
namespace SIGCM.Application.Interfaces;
|
||||
|
||||
public interface IAuthService
|
||||
{
|
||||
Task<string?> LoginAsync(string username, string password);
|
||||
}
|
||||
7
src/SIGCM.Application/Interfaces/ITokenService.cs
Normal file
7
src/SIGCM.Application/Interfaces/ITokenService.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
namespace SIGCM.Application.Interfaces;
|
||||
using SIGCM.Domain.Entities;
|
||||
|
||||
public interface ITokenService
|
||||
{
|
||||
string GenerateToken(User user);
|
||||
}
|
||||
13
src/SIGCM.Application/SIGCM.Application.csproj
Normal file
13
src/SIGCM.Application/SIGCM.Application.csproj
Normal file
@@ -0,0 +1,13 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\SIGCM.Domain\SIGCM.Domain.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net10.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
Reference in New Issue
Block a user