import api from './index.js'

/**
 * 学习进度相关API接口
 */

// 获取视频播放凭证
export const getVideoPlayAuth = (videoId) => {
  return api.get(`/video/play-auth/${videoId}`)
}

// 视频进度上报
export const reportProgress = (data) => {
  return api.post('/progress/report', data)
}

// 获取学习进度
export const getProgress = (courseId) => {
  return api.get(`/progress/${courseId}`)
} 