import api from './request'

// 获取日活用户趋势数据
export const getDailyActiveUsersTrend = (year = '2024', granularity = 'monthly') => {
  return api.get('/analytics/daily-active-users', { 
    params: { year, granularity } 
  })
}

// 获取用户活跃度概览
export const getUserActivityOverview = () => {
  return api.get('/analytics/user-activity-overview')
}

// 获取用户活跃度热力图数据
export const getUserActivityHeatmap = (year = '2024') => {
  return api.get('/analytics/user-activity-heatmap', { 
    params: { year } 
  })
}
