mirror of
https://github.com/PlayEdu/backend
synced 2025-12-23 20:29:39 +08:00
编辑线上课增加上架时间属性
This commit is contained in:
@@ -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,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user