Response.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. namespace Application.Features.Api.Forum.Post.Get;
  2. public sealed record Response(
  3. int ID,
  4. int BoardID,
  5. string BoardCode,
  6. int? BoardPrefixID,
  7. int? MemberID,
  8. string Subject,
  9. string Content,
  10. string? SID,
  11. string? Email,
  12. string? Name,
  13. // 말머리
  14. Response.BoardPrefixDto? BoardPrefix,
  15. // 작성자
  16. Response.WriterDto? Writer,
  17. bool IsReply,
  18. bool IsAnonymous,
  19. bool IsSecret,
  20. bool IsNotice,
  21. bool IsSpeaker,
  22. int Views,
  23. int Likes,
  24. int Dislikes,
  25. int Comments,
  26. int Reports,
  27. byte Images,
  28. byte Medias,
  29. byte Files,
  30. byte Tags,
  31. string? IpAddress,
  32. DateTime CreatedAt,
  33. // 태그
  34. List<Response.TagDto> TagList,
  35. // 이전/다음 게시글
  36. int? PrevID,
  37. int? NextID,
  38. // 사용자별 상태
  39. bool HasLike,
  40. bool HasDislike,
  41. bool HasBookmark,
  42. bool HasReport
  43. ) {
  44. public sealed record BoardPrefixDto(int ID, int BoardID, string Name, string? Color, int Posts);
  45. public sealed record WriterDto(int ID, string SID, string? Name, string? Thumb, string? Icon, string? GradeImage, string? Summary, DateTime CreatedAt);
  46. public sealed record TagDto(int ID, string Slug);
  47. }