post.ts 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. import { FeedTag } from './card';
  2. export interface FeedPostImage {
  3. url: string;
  4. width: number|null;
  5. height: number|null;
  6. }
  7. export interface FeedPostDetail {
  8. postID: number;
  9. authorSID: string|null;
  10. authorName: string|null;
  11. authorThumb: string|null;
  12. isCreator: boolean;
  13. channelSID: string|null;
  14. content: string;
  15. images: FeedPostImage[];
  16. medias: string[];
  17. likes: number;
  18. comments: number;
  19. bookmarks: number;
  20. views: number;
  21. tags: FeedTag[];
  22. createdAt: string;
  23. hasLike: boolean;
  24. hasBookmark: boolean;
  25. isOwner: boolean;
  26. }
  27. export interface FeedReply {
  28. id: number;
  29. parentID: number|null;
  30. parentAuthorSID: string|null;
  31. parentAuthorName: string|null;
  32. content: string;
  33. authorSID: string|null;
  34. authorName: string|null;
  35. authorThumb: string|null;
  36. isCreator: boolean;
  37. likes: number;
  38. hasLike: boolean;
  39. isOwner: boolean;
  40. isDeleted: boolean;
  41. createdAt: string;
  42. }
  43. export interface FeedRepliesResponse {
  44. total: number;
  45. list: FeedReply[];
  46. }
  47. export interface FeedSuggestedFollow {
  48. sid: string;
  49. name: string|null;
  50. thumb: string|null;
  51. summary: string|null;
  52. isCreator: boolean;
  53. followerCount: number;
  54. }
  55. export interface FeedSuggestedFollowsResponse {
  56. list: FeedSuggestedFollow[];
  57. }