danylokhodus's picture
init
b9c7f0e
Raw History Blame
1.23 kB
namespace FlowAPI.Application.DTOs.User
{
public class CreateUserDto
{
public string Email { get; set; } = string.Empty;
public string Password { get; set; } = string.Empty;
public string DisplayName { get; set; } = string.Empty;
}
public class UpdateUserDto
{
public string? DisplayName { get; set; }
public bool? IsPremium { get; set; }
public string? AvatarUrl { get; set; }
}
public class LoginDto
{
public string Email { get; set; } = string.Empty;
public string Password { get; set; } = string.Empty;
}
public class UserResponseDto
{
public Guid Id { get; set; }
public string Email { get; set; } = string.Empty;
public string DisplayName { get; set; } = string.Empty;
public bool IsPremium { get; set; }
public string? AvatarUrl { get; set; }
public DateTime CreatedAt { get; set; }
}
public class AuthResponseDto
{
public UserResponseDto User { get; set; } = null!;
public string Token { get; set; } = string.Empty;
}
public class GoogleLoginDto
{
public string IdToken { get; set; } = string.Empty;
}
}