index.js 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. import request from "@/request"
  2. import config from "@/config"
  3. // 获取视频分类列表
  4. export const getServerShipCategoryList = (data) => {
  5. return request.post({
  6. url: '/api/ship/serverShipVideo/getServerShipCategoryList',
  7. data:data
  8. })
  9. }
  10. // 获取视频节目分页
  11. export const getServerShipProgramPage = (data) => {
  12. return request.post({
  13. url: '/api/ship/serverShipVideo/getServerShipProgramPage',
  14. data:data
  15. })
  16. }
  17. // 查看视频列表
  18. export const getServerShipVideoList = (shipProgramId) => {
  19. return request.post({
  20. url: `/api/ship/serverShipVideo/getServerShipVideoList/${shipProgramId}`,
  21. })
  22. }
  23. // 获取视频url
  24. export const getServerShipVideoUrl = (serverShipVideoId) => {
  25. return request.post({
  26. url: `/api/ship/serverShipVideo/getServerShipVideoUrl/${serverShipVideoId}`,
  27. })
  28. }
  29. // 观看同步
  30. export const syncWatchHistory = (data) => {
  31. return request.post({
  32. url: `/api/ship/serverShipVideo/syncWatchHistory`,
  33. data: data
  34. })
  35. }