First Commit
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
namespace ADS.Apis.Gps.Domain.Models.Sicrep;
|
||||
|
||||
public sealed class SicrepUserValidationResult
|
||||
{
|
||||
public int CveUsuario { get; init; }
|
||||
public int Acceso { get; init; }
|
||||
|
||||
public int? CveRol { get; init; }
|
||||
|
||||
// Si tu SP regresa más campos, agrégalos aquí (p.ej. nombre, email, etc.)
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using ADS.Apis.Gps.Domain.Models.Sicrep;
|
||||
|
||||
namespace ADS.Apis.Gps.Domain.Ports.Sicrep;
|
||||
|
||||
public interface ISicrepUserValidationRepository
|
||||
{
|
||||
Task<SicrepUserValidationResult?> ValidateUserAsync(
|
||||
string usuario,
|
||||
string contrasena32,
|
||||
int cveEmpresa,
|
||||
string? ip,
|
||||
string? mac,
|
||||
string? grupoEmpresa,
|
||||
CancellationToken ct = default);
|
||||
}
|
||||
Reference in New Issue
Block a user