Response.cs 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. namespace Application.Features.Api.Auth.GetProfile;
  2. public sealed record Response(
  3. int ID,
  4. string Sid,
  5. string Email,
  6. string? Name,
  7. string? Intro,
  8. string? Summary,
  9. string? Thumb,
  10. string? Icon,
  11. int? Gender,
  12. bool IsEmailVerified,
  13. bool IsAuthCertified,
  14. bool IsAdmin,
  15. bool IsCreator,
  16. bool IsDenied,
  17. DateTime? LastLoginAt,
  18. DateTime? PasswordUpdatedAt,
  19. DateTime CreatedAt,
  20. DateTime? UpdatedAt,
  21. GradeDto? MemberGrade,
  22. ApproveDto MemberApprove,
  23. StatsDto MemberStats
  24. );
  25. public sealed record GradeDto(
  26. int ID,
  27. string KorName,
  28. string EngName,
  29. short Order,
  30. string? Image
  31. );
  32. public sealed record ApproveDto(
  33. bool IsReceiveSMS,
  34. bool IsReceiveEmail,
  35. bool IsReceiveNote,
  36. bool IsDisclosureInvest
  37. );
  38. public sealed record StatsDto(
  39. long Exp,
  40. long PostCount,
  41. long CommentCount,
  42. long LikeReceivedCount,
  43. long LikeGivenCount,
  44. long BookmarkGivenCount,
  45. long LoginCount,
  46. long AttendanceCount,
  47. long FollowingCount,
  48. long FollowerCount
  49. );