sellerLiveApply.js 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. import { requestApi } from '../util/network'
  2. // 获取视频
  3. export const getLiveApplyList =
  4. (params) =>
  5. requestApi(
  6. '/seller_live_apply/get_live_apply_list',
  7. 'POST',
  8. {
  9. 'page': params.page,
  10. 'per_page': params.per_page
  11. },
  12. 'seller'
  13. )
  14. export const getLiveApplyInfo =
  15. (live_apply_id) =>
  16. requestApi(
  17. '/seller_live_apply/get_live_apply_info',
  18. 'POST',
  19. {
  20. live_apply_id: live_apply_id
  21. },
  22. 'seller'
  23. )
  24. // 视频保存
  25. export const saveLiveApply =
  26. (live) =>
  27. requestApi(
  28. '/seller_live_apply/save_live_apply',
  29. 'POST',
  30. live,
  31. 'seller'
  32. )
  33. export const joinLiveApply =
  34. (data) =>
  35. requestApi(
  36. '/seller_live_apply/join_live',
  37. 'POST',
  38. data,
  39. 'seller'
  40. )
  41. export const leaveLiveApply =
  42. (data) =>
  43. requestApi(
  44. '/seller_live_apply/leave_live',
  45. 'POST',
  46. data,
  47. 'seller'
  48. )
  49. export const changeLiveApply =
  50. (data) =>
  51. requestApi(
  52. '/seller_live_apply/change_live',
  53. 'POST',
  54. data,
  55. 'seller'
  56. )
  57. // 删除视频
  58. export const delLiveApply =
  59. (live_apply_id) =>
  60. requestApi(
  61. '/seller_live_apply/del_live_apply',
  62. 'POST',
  63. {
  64. live_apply_id: live_apply_id
  65. },
  66. 'seller'
  67. )
  68. // 上传封面
  69. export const uploadInfoFile =
  70. (file) =>
  71. requestApi(
  72. '/seller_live_apply/image_upload',
  73. 'POST',
  74. file,
  75. 'seller',
  76. true
  77. )