forked from ReiMerc/skantravels
40 lines
844 B
C#
40 lines
844 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace AuthorizationService.Models;
|
|
|
|
public class User : BaseModel
|
|
{
|
|
public string? Email { get; set; }
|
|
public string? Username { get; set; }
|
|
public string? Password { get; set; }
|
|
public string HashedPassword { get; set; }
|
|
}
|
|
|
|
public class UserDTO
|
|
{
|
|
public string Id { get; set; }
|
|
public string Email { get; set; }
|
|
public string Username { get; set; }
|
|
}
|
|
|
|
public class LoginDTO
|
|
{
|
|
public string Email { get; set; }
|
|
public string Password { get; set; }
|
|
}
|
|
|
|
public class SignUpDTO
|
|
{
|
|
public string Email { get; set; }
|
|
public string Username { get; set; }
|
|
public string Password { get; set; }
|
|
}
|
|
|
|
public class ChangePasswordDTO
|
|
{
|
|
public string Id { get; set; }
|
|
public string OldPassword { get; set; }
|
|
public string NewPassword { get; set; }
|
|
}
|
|
|