mirror of
https://github.com/PlayEdu/frontend.git
synced 2025-12-24 01:39:37 +08:00
视频播放页面重构
This commit is contained in:
@@ -5,6 +5,11 @@ export function detail(id: number) {
|
||||
return client.get(`/api/v1/course/${id}`, {});
|
||||
}
|
||||
|
||||
// 线上课课时详情
|
||||
export function play(courseId: number, id: number) {
|
||||
return client.get(`/api/v1/course/${courseId}/hour/${id}`, {});
|
||||
}
|
||||
|
||||
// 获取播放地址
|
||||
export function playUrl(courseId: number, hourId: number) {
|
||||
return client.get(`/api/v1/course/${courseId}/hour/${hourId}/play`, {});
|
||||
|
||||
Reference in New Issue
Block a user