course.js 818 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. import request from '@/common/request.js'
  2. /**
  3. * 获取考试列表
  4. * @param {Object} data
  5. */
  6. export function coursePaging(data) {
  7. return request.post('/api/course/course/user-paging', data);
  8. }
  9. /**
  10. * 获取考试详情
  11. * @param {Object} id
  12. */
  13. export function fetchDetail(id) {
  14. return request.post('/api/course/course/detail', { id: id});
  15. }
  16. /**
  17. * 课程文件列表
  18. * @param {Object} id
  19. */
  20. export function fetchLearnList(id) {
  21. return request.post('/api/course/file/learn/list', { courseId: id});
  22. }
  23. /**
  24. * 校验文件
  25. * @param {Object} data
  26. */
  27. export function apiCheckFile(data) {
  28. return request.post('/api/course/file/check-file', data);
  29. }
  30. /**
  31. * 获取基础详情
  32. * @param {} id
  33. */
  34. export function simpleDetail(id) {
  35. return request.post('/api/course/course/simple-detail', {id: id});
  36. }