liveData.js 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. import request from '@/utils/request'
  2. export function recentLive() {
  3. return request({
  4. url: '/liveData/liveData/recentLive',
  5. method: 'get',
  6. })
  7. }
  8. export function liveTop(query) {
  9. return request({
  10. url: '/liveData/liveData/getLiveTop',
  11. method: 'get',
  12. params: query
  13. })
  14. }
  15. export function getTrendData(queryParams) {
  16. return request({
  17. url: '/liveData/liveData/getTrendData',
  18. method: 'post',
  19. data: queryParams
  20. })
  21. }
  22. export function columns() {
  23. return request({
  24. url: '/liveData/liveData/columns',
  25. method: 'get',
  26. })
  27. }
  28. export function updateColumns(columns) {
  29. return request({
  30. url: '/liveData/liveData/updateColumns',
  31. method: 'post',
  32. data:columns,
  33. })
  34. }
  35. export function queryStudentData(query) {
  36. return request({
  37. url: '/live/studentData/queryStudentData',
  38. method: 'post',
  39. data:query,
  40. })
  41. }
  42. export function dashboardData(liveId) {
  43. return request({
  44. url: '/liveData/liveData/dashboardData' + '?liveId=' +liveId,
  45. method: 'get'
  46. })
  47. }
  48. export function listLiveData(data) {
  49. return request({
  50. url: '/liveData/liveData/listLiveData',
  51. method: 'post',
  52. data:data,
  53. })
  54. }
  55. export function getLiveDataDetailBySql(liveId) {
  56. return request({
  57. url: '/liveData/liveData/getLiveDataDetailBySql?liveId=' + liveId,
  58. method: 'get'
  59. })
  60. }
  61. export function getLiveUserDetailListBySql(liveId, pageNum, pageSize) {
  62. return request({
  63. url: '/liveData/liveData/getLiveUserDetailListBySql?liveId=' + liveId + '&pageNum=' + (pageNum || 1) + '&pageSize=' + (pageSize || 100),
  64. method: 'get'
  65. })
  66. }
  67. export function getLiveDataDetailByServer(liveId) {
  68. return request({
  69. url: '/liveData/liveData/getLiveDataDetailByServer?liveId=' + liveId,
  70. method: 'get'
  71. })
  72. }
  73. export function getLiveUserDetailListByServer(liveId) {
  74. return request({
  75. url: '/liveData/liveData/getLiveUserDetailListByServer?liveId=' + liveId,
  76. method: 'get'
  77. })
  78. }
  79. // 导出直播间用户详情数据
  80. export function exportLiveUserDetail(liveId) {
  81. return request({
  82. url: '/liveData/liveData/exportLiveUserDetail?liveId=' + liveId,
  83. method: 'get'
  84. })
  85. }
  86. export function exportLiveData(query) {
  87. return request({
  88. url: '/liveData/liveData/export',
  89. method: 'get',
  90. params: query
  91. })
  92. }
  93. // 分公司直播数据统计列表
  94. export function listLiveDataCompany(data) {
  95. return request({
  96. url: '/liveData/liveData/listLiveDataCompany',
  97. method: 'post',
  98. data: data
  99. })
  100. }
  101. // 导出分公司直播数据统计
  102. export function exportLiveDataCompany(data) {
  103. return request({
  104. url: '/liveData/liveData/exportLiveDataCompany',
  105. method: 'post',
  106. data: data
  107. })
  108. }
  109. // 直播数据统计-数据概览(多直播间聚合指标)
  110. export function getLiveStatisticsOverview(liveIds) {
  111. return request({
  112. url: '/liveData/liveData/getLiveStatisticsOverview',
  113. method: 'post',
  114. data: liveIds || []
  115. })
  116. }
  117. // 直播趋势-进入人数折线图
  118. export function getLiveEntryTrend(liveIds) {
  119. return request({
  120. url: '/liveData/liveData/getLiveEntryTrend',
  121. method: 'post',
  122. data: liveIds || []
  123. })
  124. }
  125. // 直播间学员列表(分页)
  126. export function listLiveRoomStudents(data) {
  127. return request({
  128. url: '/liveData/liveData/listLiveRoomStudents',
  129. method: 'post',
  130. data: data || {}
  131. })
  132. }
  133. // 商品对比统计
  134. export function listProductCompareStats(data) {
  135. return request({
  136. url: '/liveData/liveData/listProductCompareStats',
  137. method: 'post',
  138. data: data || {}
  139. })
  140. }
  141. // 邀课对比-分享人选项列表
  142. export function listInviteSalesOptions(liveIds) {
  143. return request({
  144. url: '/liveData/liveData/listInviteSalesOptions',
  145. method: 'post',
  146. data: liveIds || []
  147. })
  148. }
  149. // 邀课对比统计
  150. export function listInviteCompareStats(data) {
  151. return request({
  152. url: '/liveData/liveData/listInviteCompareStats',
  153. method: 'post',
  154. data: data || {}
  155. })
  156. }