danylokhodus's picture
feat: include daily AI generation count in user response DTO
67d4c53
Raw
History Blame Contribute Delete
1.45 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 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;
}
}