49 lines
1.4 KiB
C#
49 lines
1.4 KiB
C#
using HelpDesk.Models.Enums;
|
|
|
|
namespace HelpDesk.Models.DTOs;
|
|
|
|
public class LoginRequest
|
|
{
|
|
public string Email { get; set; } = string.Empty;
|
|
public string Password { get; set; } = string.Empty;
|
|
}
|
|
|
|
public class RegisterRequest
|
|
{
|
|
public string Email { get; set; } = string.Empty;
|
|
public string Password { get; set; } = string.Empty;
|
|
public string FirstName { get; set; } = string.Empty;
|
|
public string LastName { get; set; } = string.Empty;
|
|
}
|
|
|
|
public class AuthResponse
|
|
{
|
|
public string Token { get; set; } = string.Empty;
|
|
public DateTime Expiration { get; set; }
|
|
public UserDto User { get; set; } = null!;
|
|
}
|
|
|
|
public class UserDto
|
|
{
|
|
public Guid Id { get; set; }
|
|
public string Email { get; set; } = string.Empty;
|
|
public string FirstName { get; set; } = string.Empty;
|
|
public string LastName { get; set; } = string.Empty;
|
|
public UserRole Role { get; set; }
|
|
public bool IsActive { get; set; }
|
|
public DateTime CreatedAt { get; set; }
|
|
public string? PhoneNumber { get; set; }
|
|
public string? AvatarUrl { get; set; }
|
|
}
|
|
|
|
public class UpdateUserRequest
|
|
{
|
|
public string? FirstName { get; set; }
|
|
public string? LastName { get; set; }
|
|
public string? Email { get; set; }
|
|
public string? PhoneNumber { get; set; }
|
|
public string? AvatarUrl { get; set; }
|
|
public UserRole? Role { get; set; }
|
|
public bool? IsActive { get; set; }
|
|
}
|