Spaces:
Running
Running
File size: 1,445 Bytes
b9c7f0e 35321eb 7039b6a b9c7f0e 7039b6a 67d4c53 b9c7f0e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | 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 string? Password { get; set; }
public string? SubscriptionTier { 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 string SubscriptionTier { get; set; } = "Free";
public int DailyAiGenerationsCount { 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;
}
}
|