Fase 1: Inicialización del Backend .NET 10, Configuración de Dapper, Autenticación JWT y Entidades Base

This commit is contained in:
2025-12-17 13:08:21 -03:00
parent 15305c681c
commit eda016f93f
33 changed files with 819 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
namespace SIGCM.Application;
public class Class1
{
}

View File

@@ -0,0 +1,7 @@
namespace SIGCM.Application.DTOs;
public class LoginDto
{
public required string Username { get; set; }
public required string Password { get; set; }
}

View File

@@ -0,0 +1,6 @@
namespace SIGCM.Application.Interfaces;
public interface IAuthService
{
Task<string?> LoginAsync(string username, string password);
}

View File

@@ -0,0 +1,7 @@
namespace SIGCM.Application.Interfaces;
using SIGCM.Domain.Entities;
public interface ITokenService
{
string GenerateToken(User user);
}

View 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>