编辑线上课增加上架时间属性

This commit is contained in:
unknown
2023-09-04 16:35:05 +08:00
parent 39faf98551
commit d4c8032b2d
2 changed files with 33 additions and 2 deletions

View File

@@ -66,7 +66,8 @@ export function updateCourse(
depIds: number[],
categoryIds: number[],
chapters: number[],
hours: number[]
hours: number[],
publishedAt: string
) {
return client.put(`/backend/v1/course/${id}`, {
title: title,
@@ -78,6 +79,7 @@ export function updateCourse(
category_ids: categoryIds,
chapters: chapters,
hours: hours,
published_at: publishedAt,
});
}