Files
accounting-system/backend/src/FiscalFlow.Application/Commands/Auth/AuthCommands.cs
Invoice Master ad6ce08e3e refactor: rename namespace to FiscalFlow and upgrade to .NET 10
- Rename InvoiceMaster.* to FiscalFlow.* namespace
- Upgrade from .NET 8 to .NET 10
- Update all NuGet packages to latest versions
- Update C# language version to 14.0
2026-02-04 23:18:59 +01:00

36 lines
757 B
C#

using MediatR;
namespace FiscalFlow.Application.Commands.Auth;
public record RegisterCommand(
string Email,
string Password,
string? FullName) : IRequest<AuthResultDto>;
public record LoginCommand(
string Email,
string Password) : IRequest<AuthResultDto>;
public record RefreshTokenCommand(
string RefreshToken) : IRequest<TokenResultDto>;
public record LogoutCommand(
Guid UserId) : IRequest<bool>;
public record AuthResultDto(
bool Success,
string? ErrorMessage,
UserDto? User,
TokenResultDto? Tokens);
public record TokenResultDto(
string AccessToken,
string RefreshToken,
int ExpiresIn);
public record UserDto(
Guid Id,
string Email,
string? FullName,
DateTime CreatedAt);