import request from '@/utils/request'

// 查询所有租户直播列表
export function listAllLives(query) {
  return request({
    url: '/admin/live/list',
    method: 'get',
    params: query
  })
}

// 根据租户ID查询直播列表
export function listByCompany(companyId) {
  return request({
    url: '/admin/live/byCompany/' + companyId,
    method: 'get'
  })
}

// 获取直播详情
export function getLiveInfo(liveId) {
  return request({
    url: '/admin/live/' + liveId,
    method: 'get'
  })
}

// 导出直播
export function exportAllLives(query) {
  return request({ url: '/admin/live/export', method: 'get', params: query })
}

// 获取直播统计信息
export function getLiveStatistics() {
  return request({
    url: '/admin/live/statistics',
    method: 'get'
  })
}