DTO project fixed, events experiments

This commit is contained in:
2026-01-15 00:39:18 +01:00
Unverified
parent 831394ae0e
commit 6a813ed439
17 changed files with 180 additions and 59 deletions

View File

@@ -0,0 +1,8 @@
namespace TimetableDesigner.Backend.Services.Authentication.DTO.WebAPI;
public class AuthenticatePasswordRequest
{
public string Email { get; set; } = null!;
public string Password { get; set; } = null!;
public bool RememberMe { get; set; }
}

View File

@@ -0,0 +1,7 @@
namespace TimetableDesigner.Backend.Services.Authentication.DTO.WebAPI;
public class AuthenticateResponse
{
public string AccessToken { get; set; } = null!;
public string RefreshToken { get; set; } = null!;
}

View File

@@ -0,0 +1,7 @@
namespace TimetableDesigner.Backend.Services.Authentication.DTO.WebAPI;
public class AuthenticateTokenRequest
{
public string AccessToken { get; set; } = null!;
public string RefreshToken { get; set; } = null!;
}

View File

@@ -0,0 +1,7 @@
namespace TimetableDesigner.Backend.Services.Authentication.DTO.WebAPI;
public record RegisterRequest(
string Email,
string Password,
string PasswordConfirmation
);

View File

@@ -0,0 +1,6 @@
namespace TimetableDesigner.Backend.Services.Authentication.DTO.WebAPI;
public record RegisterResponse(
long Id,
string Email
);

View File

@@ -0,0 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>