sellerMiniproLive.js 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. import { requestApi } from '../util/network'
  2. // 获取视频
  3. export const getRoomList =
  4. (params) =>
  5. requestApi(
  6. '/seller_minipro_live/get_room_list',
  7. 'POST',
  8. {
  9. 'page': params.page,
  10. 'per_page': params.per_page
  11. },
  12. 'seller'
  13. )
  14. // 获取视频
  15. export const getRoomInfo =
  16. (data) =>
  17. requestApi(
  18. '/seller_minipro_live/get_room_info',
  19. 'POST',
  20. data,
  21. 'seller'
  22. )
  23. export const addRoom =
  24. (data) =>
  25. requestApi(
  26. '/seller_minipro_live/add_room',
  27. 'POST',
  28. data,
  29. 'seller'
  30. )
  31. // 视频保存
  32. export const importRoomGoods =
  33. (data) =>
  34. requestApi(
  35. '/seller_minipro_live/import_room_goods',
  36. 'POST',
  37. data,
  38. 'seller'
  39. )
  40. // 删除视频
  41. export const getGoodsList =
  42. (params) =>
  43. requestApi(
  44. '/seller_minipro_live/get_goods_list',
  45. 'POST',
  46. {
  47. 'page': params.page,
  48. 'per_page': params.per_page
  49. },
  50. 'seller'
  51. )
  52. export const addGoods =
  53. (data) =>
  54. requestApi(
  55. '/seller_minipro_live/add_goods',
  56. 'POST',
  57. data,
  58. 'seller'
  59. )
  60. // 上传封面
  61. export const uploadMedia =
  62. (file) =>
  63. requestApi(
  64. '/seller_minipro_live/upload_media',
  65. 'POST',
  66. file,
  67. 'seller',
  68. true
  69. )