Spaces:
Sleeping
Sleeping
| namespace LibraryManagement.Backend.Features.Auth | |
| { | |
| public class RegisterRequest | |
| { | |
| public string FullName { get; set; } = string.Empty; | |
| public string Email { get; set; } = string.Empty; | |
| public string Password { get; set; } = string.Empty; | |
| public string? PhoneNumber { get; set; } | |
| public string? Address { get; set; } | |
| public string? StudentId { get; set; } | |
| } | |
| public class LoginRequest | |
| { | |
| public string Email { get; set; } = string.Empty; | |
| public string Password { get; set; } = string.Empty; | |
| } | |
| public class AuthResponse | |
| { | |
| public string Token { get; set; } = string.Empty; | |
| public string FullName { get; set; } = string.Empty; | |
| public string Role { get; set; } = string.Empty; | |
| public DateTime Expiry { get; set; } | |
| } | |
| } | |