coursewarePlay.api.ts 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. import { httpAxios_gym, httpAxios_gyt, httpAxios_klx } from "@/api/ApiInstance"
  2. /**
  3. * 管乐团
  4. */
  5. // 获取当前播放的时间
  6. export const getCoursewarePlayTime_gyt = (id: string) => {
  7. return httpAxios_gyt.axioseRquest({
  8. method: "post",
  9. url: "/api-teacher/courseSchedule/getCoursewarePlayTime?courseScheduleId=" + id,
  10. params: {
  11. playFrom: "WEB"
  12. }
  13. })
  14. }
  15. // 记录时间
  16. export const coursewarePlayTime_gyt = (id: string, time: number) => {
  17. return httpAxios_gyt.axioseRquest({
  18. method: "post",
  19. url: `/api-teacher/courseSchedule/coursewarePlayTime?courseScheduleId=${id}&playTime=${time}`,
  20. params: {
  21. playFrom: "WEB"
  22. }
  23. })
  24. }
  25. // 判断是否签退
  26. export const checkWebCourse_gyt = (id: string) => {
  27. return httpAxios_gyt.axioseRquest({
  28. method: "post",
  29. url: `/api-teacher/courseSchedule/checkWebCourse/` + id
  30. })
  31. }
  32. // 查询关联课程
  33. export const refLevel_gyt = (data: string) => {
  34. return httpAxios_gyt.axioseRquest({
  35. method: "post",
  36. url: `/api-teacher/lessonCoursewareDetail/refLevel`,
  37. data
  38. })
  39. }
  40. /**
  41. * 酷乐秀
  42. */
  43. // 查询关联课程
  44. export const refLevel_klx = (data: string) => {
  45. return httpAxios_klx.axioseRquest({
  46. method: "post",
  47. url: `/api-teacher/tenantAlbumMusic/refLevel`,
  48. data
  49. })
  50. }
  51. /**
  52. * 酷乐秀
  53. */
  54. // 查询关联课程
  55. export const refLevel_gym = (data: string) => {
  56. return httpAxios_gym.axioseRquest({
  57. method: "post",
  58. url: `/api-teacher/lessonCourseware/refLevel`,
  59. data
  60. })
  61. }