memberLive.js 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. import { requestApi } from '../util/network'
  2. export const getLiveList =
  3. (data) =>
  4. requestApi(
  5. '/live/get_live_list',
  6. 'POST',
  7. data
  8. )
  9. export const getMiniproLiveList =
  10. (data) =>
  11. requestApi(
  12. '/live/get_minipro_live_list',
  13. 'POST',
  14. data
  15. )
  16. export const getLiveInfo =
  17. (live_apply_id) =>
  18. requestApi(
  19. '/member_live/get_live_info',
  20. 'POST',
  21. {
  22. 'live_apply_id': live_apply_id
  23. },
  24. 'member'
  25. )
  26. export const joinLive =
  27. (live_apply_id, client_id) =>
  28. requestApi(
  29. '/member_live/join_live',
  30. 'POST',
  31. {
  32. 'live_apply_id': live_apply_id,
  33. 'client_id': client_id
  34. },
  35. 'member'
  36. )
  37. export const leaveLive =
  38. (live_apply_id, client_id) =>
  39. requestApi(
  40. '/member_live/leave_live',
  41. 'POST',
  42. {
  43. 'live_apply_id': live_apply_id,
  44. 'client_id': client_id
  45. },
  46. 'member'
  47. )
  48. export const addLike =
  49. (live_apply_id) =>
  50. requestApi(
  51. '/member_live/add_like',
  52. 'POST',
  53. {
  54. 'live_apply_id': live_apply_id
  55. },
  56. 'member'
  57. )
  58. export const addGift =
  59. (live_apply_id) =>
  60. requestApi(
  61. '/member_live/add_gift',
  62. 'POST',
  63. {
  64. 'live_apply_id': live_apply_id
  65. },
  66. 'member'
  67. )