import request from './request'

export const dashboardApi = {
  // 获取仪表盘概览数据
  getOverview() {
    return request.get('/dashboard/overview')
  },

  // 获取日活数据
  getDailyActiveUsers() {
    return request.get('/dashboard/daily-active-users')
  },

  // 获取收入趋势数据
  getRevenueTrend() {
    return request.get('/dashboard/revenue-trend')
  },

  // 获取订单状态分布
  getOrderStatusDistribution() {
    return request.get('/dashboard/order-status-distribution')
  },

  // 获取支付方式分布
  getPaymentMethodDistribution() {
    return request.get('/dashboard/payment-method-distribution')
  },

  // 获取最近订单列表
  getRecentOrders() {
    return request.get('/dashboard/recent-orders')
  },

  // 获取所有仪表盘数据
  getAllData() {
    return request.get('/dashboard/all')
  }
}
