课程详情增加课件下载

This commit is contained in:
unknown
2023-07-29 16:47:23 +08:00
parent be75b79b01
commit 898b069552
3 changed files with 249 additions and 51 deletions

View File

@@ -31,3 +31,8 @@ export function playPing(courseId: number, hourId: number) {
export function latestLearn() {
return client.get(`/api/v1/user/latest-learn`, {});
}
//下载课件
export function downloadAttachment(courseId: number, id: number) {
return client.get(`/api/v1/course/${courseId}/attach/${id}/download`, {});
}