card.ts 783 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. export interface FeedCard {
  2. postID: number;
  3. authorSID: string|null;
  4. authorName: string|null;
  5. authorThumb: string|null;
  6. authorSummary: string|null;
  7. isCreator: boolean;
  8. channelSID: string|null;
  9. subject: string;
  10. contentExcerpt: string;
  11. thumbnail: string|null;
  12. images: number;
  13. medias: number;
  14. likes: number;
  15. comments: number;
  16. bookmarks: number;
  17. views: number;
  18. tags: FeedTag[];
  19. createdAt: string;
  20. }
  21. export interface FeedTag {
  22. name: string;
  23. slug: string;
  24. }
  25. export interface FeedTimelineResponse {
  26. total: number;
  27. list: FeedCard[];
  28. }
  29. export interface FeedTagPageResponse {
  30. tagName: string;
  31. tagSlug: string;
  32. total: number;
  33. list: FeedCard[];
  34. }
  35. export interface FeedUserPageResponse {
  36. authorSID: string;
  37. authorName: string;
  38. total: number;
  39. list: FeedCard[];
  40. }