Response.cs 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. using Domain.Entities.Members.ValueObject;
  2. namespace Application.Features.Admin.Member.List.Get;
  3. public sealed class Response
  4. {
  5. public int ID { get; init; }
  6. public string SID { get; init; } = "";
  7. public required string Email { get; init; }
  8. public string? Name { get; init; }
  9. public string? FullName { get; init; }
  10. public string? FirstName { get; init; }
  11. public string? LastName { get; init; }
  12. public string? Phone { get; init; }
  13. public DateOnly? Birthday { get; init; }
  14. public Gender? Gender { get; init; }
  15. public string? Summary { get; init; }
  16. public string? Intro { get; init; }
  17. public string? Thumb { get; init; }
  18. public string? Icon { get; init; }
  19. public int? MemberGradeID { get; init; }
  20. public string? GradeName { get; init; }
  21. public bool IsEmailVerified { get; init; }
  22. public bool IsAuthCertified { get; init; }
  23. public bool IsDenied { get; init; }
  24. public bool IsAdmin { get; init; }
  25. public bool IsWithdraw { get; init; }
  26. public bool IsCreator { get; init; }
  27. public string? DeviceInfo { get; init; }
  28. public string? SignupIP { get; init; }
  29. public string? LastLoginIp { get; init; }
  30. public string? IpAddress { get; init; }
  31. public string? UserAgent { get; init; }
  32. public DateTime? LastLoginAt { get; init; }
  33. public DateTime? EmailVerifiedAt { get; init; }
  34. public DateTime? AuthCertifiedAt { get; init; }
  35. public DateTime? DeniedAt { get; init; }
  36. public DateTime? DeletedAt { get; init; }
  37. public DateTime? UpdatedAt { get; init; }
  38. public DateTime CreatedAt { get; init; }
  39. public long Following { get; init; }
  40. public long Followed { get; init; }
  41. // Channel
  42. public ChannelInfo? Channel { get; init; }
  43. // Wallet
  44. public WalletInfo Wallet { get; init; } = new();
  45. public sealed class ChannelInfo
  46. {
  47. public string SID { get; init; } = "";
  48. public string Name { get; init; } = "";
  49. public string? Handle { get; init; }
  50. public string YouTubeUrl { get; init; } = "";
  51. }
  52. public sealed class WalletInfo
  53. {
  54. public long Balance { get; init; }
  55. public long CreditBalance { get; init; }
  56. }
  57. }