import request from '@/utils/request'

// 查询站点统计列表
export function pageSiteStatistics(query) {
  return request({
    url: '/adv/site-statistics/page',
    method: 'get',
    params: query
  })
}

// 查询站点统计详情
export function getSiteStatistics(id) {
  return request({
    url: '/adv/site-statistics/' + id,
    method: 'get'
  })
}

// 根据站点ID查询统计
export function getSiteStatisticsBySiteId(siteId) {
  return request({
    url: '/adv/site-statistics/site/' + siteId,
    method: 'get'
  })
}

// 刷新站点统计数据
export function refreshSiteStatistics(siteId) {
  return request({
    url: '/adv/site-statistics/refresh/' + siteId,
    method: 'post'
  })
}
