Spaces:
Running
Running
Download FlowAPI.Application/DTOs/User/UserDtos.cs from DanilDrotik/FlowAPI: direct link, hf CLI and curl.
- Browser
- Download file 1.45 kB
-
https://huggingface.co/spaces/DanilDrotik/FlowAPI/resolve/d8ea1e09beb0ef2cedc523cc8585fea6cc52c013/FlowAPI.Application/DTOs/User/UserDtos.cs
- Command line
-
hf download hf://spaces/DanilDrotik/FlowAPI@d8ea1e09beb0ef2cedc523cc8585fea6cc52c013/FlowAPI.Application/DTOs/User/UserDtos.cs
-
curl -L -o UserDtos.cs https://huggingface.co/spaces/DanilDrotik/FlowAPI/resolve/d8ea1e09beb0ef2cedc523cc8585fea6cc52c013/FlowAPI.Application/DTOs/User/UserDtos.cs
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; | |
| } | |
| } | |