import request from '@/utils/request'

// 获取商家数据看板
export function getDashboard() {
  return request({
    url: '/merchant/statistics/dashboard',
    method: 'get'
  })
}

// 获取订单趋势
export function getOrderTrend(query) {
  return request({
    url: '/merchant/statistics/order/trend',
    method: 'get',
    params: query
  })
}

// 获取代练绩效排行
export function getPlayerRanking(query) {
  return request({
    url: '/merchant/statistics/player/ranking',
    method: 'get',
    params: query
  })
}

// 获取服务销售统计
export function getServiceSales(query) {
  return request({
    url: '/merchant/statistics/service/sales',
    method: 'get',
    params: query
  })
}
