Spaces:
Sleeping
Sleeping
feat: restructure backend project, add configuration files, implement authentication, user and book management, and enhance borrowing and subscription features
068485b Download Backend/Features/Auth/AuthModels.cs from Yuruyuruu/LibraryManagement: direct link, hf CLI and curl.
- Browser
- Download file 828 Bytes
-
https://huggingface.co/spaces/Yuruyuruu/LibraryManagement/resolve/da200f8e5e321f9c064b73fa2ecb41ec2b950ff1/Backend/Features/Auth/AuthModels.cs
- Command line
-
hf download hf://spaces/Yuruyuruu/LibraryManagement@da200f8e5e321f9c064b73fa2ecb41ec2b950ff1/Backend/Features/Auth/AuthModels.cs
-
curl -L -o AuthModels.cs https://huggingface.co/spaces/Yuruyuruu/LibraryManagement/resolve/da200f8e5e321f9c064b73fa2ecb41ec2b950ff1/Backend/Features/Auth/AuthModels.cs
828 Bytes
| namespace 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; } | |
| } | |
| } | |