Spaces:
Sleeping
Sleeping
Download LibraryManagement.Backend/Features/Auth/AuthModels.cs from Yuruyuruu/LibraryManagement: direct link, hf CLI and curl.
- Browser
- Download file 846 Bytes
-
https://huggingface.co/spaces/Yuruyuruu/LibraryManagement/resolve/93d516ebdfdf29b5f35ac2ae1405fa1876462cdc/LibraryManagement.Backend/Features/Auth/AuthModels.cs
- Command line
-
hf download hf://spaces/Yuruyuruu/LibraryManagement@93d516ebdfdf29b5f35ac2ae1405fa1876462cdc/LibraryManagement.Backend/Features/Auth/AuthModels.cs
-
curl -L -o AuthModels.cs https://huggingface.co/spaces/Yuruyuruu/LibraryManagement/resolve/93d516ebdfdf29b5f35ac2ae1405fa1876462cdc/LibraryManagement.Backend/Features/Auth/AuthModels.cs
846 Bytes
| 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; } | |
| } | |
| } | |