From 4c13d70a28820f7d1a25a118738bef89733b164d Mon Sep 17 00:00:00 2001 From: longdayi <13477510+longdayilongdayi@user.noreply.gitee.com> Date: Thu, 27 Feb 2025 08:00:11 +0800 Subject: [PATCH] 02270800 --- .../src/app/main/courses/components/CoursesContainer.tsx | 2 +- packages/common/src/models/post.ts | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/apps/web/src/app/main/courses/components/CoursesContainer.tsx b/apps/web/src/app/main/courses/components/CoursesContainer.tsx index 47cf21a..237e8b3 100644 --- a/apps/web/src/app/main/courses/components/CoursesContainer.tsx +++ b/apps/web/src/app/main/courses/components/CoursesContainer.tsx @@ -18,7 +18,7 @@ export function CoursesContainer() { return ( <> } + renderItem={(post) => } params={{ pageSize: 12, where: { diff --git a/packages/common/src/models/post.ts b/packages/common/src/models/post.ts index bde39c9..a12c727 100755 --- a/packages/common/src/models/post.ts +++ b/packages/common/src/models/post.ts @@ -42,8 +42,12 @@ export type PostDto = Post & { }; watchableDepts: Department[]; watchableStaffs: Staff[]; - terms:TermDto[] - depts:DepartmentDto[] + terms: TermDto[] + depts: DepartmentDto[] + meta?: { + thumbnail?: string + views?: number + } }; export type LectureMeta = {