This commit is contained in:
longdayi 2025-02-27 08:00:11 +08:00
parent 313f545e08
commit 4c13d70a28
2 changed files with 7 additions and 3 deletions

View File

@ -18,7 +18,7 @@ export function CoursesContainer() {
return ( return (
<> <>
<PostList <PostList
renderItem={(post) => <CourseCard course={post}></CourseCard>} renderItem={(post) => <CourseCard course={post} edit={false}></CourseCard>}
params={{ params={{
pageSize: 12, pageSize: 12,
where: { where: {

View File

@ -42,8 +42,12 @@ export type PostDto = Post & {
}; };
watchableDepts: Department[]; watchableDepts: Department[];
watchableStaffs: Staff[]; watchableStaffs: Staff[];
terms:TermDto[] terms: TermDto[]
depts:DepartmentDto[] depts: DepartmentDto[]
meta?: {
thumbnail?: string
views?: number
}
}; };
export type LectureMeta = { export type LectureMeta = {