sannlynnhtun-coding's picture
feat: restructure backend project, add configuration files, implement authentication, user and book management, and enhance borrowing and subscription features
068485b
Raw History Blame
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; }
}
}