import request from '@/utils/request'

//获取当天所有用户统计数据
export function getDailyAllUsersRanking(params = {}) {
  return request({
    url: '/exam/daily/statistics/dashboard/all-users-ranking',
    method: 'get',
    params
  })
}

// 抽问抽答完成趋势
export function getCompletionTrend(params = {}) {
  return request({
    url: '/v1/cs/app/daily-exam/completion-trend',
    method: 'get',
    params
  })
}

// 错题分析 - 总体问题分布
export function getWrongAnalysisOverview(params = {}) {
  return request({
    url: '/v1/cs/app/daily-exam/wrong-analysis/overview',
    method: 'get',
    params
  })
}

// 错题分析 - 问题分布对比（雷达图）
export function getWrongAnalysisRadar(params = {}) {
  return request({
    url: '/v1/cs/app/daily-exam/wrong-analysis/radar',
    method: 'get',
    params
  })
}

// 错题分析 - 大类详情
export function getWrongAnalysisCategoryDetail(params = {}) {
  return request({
    url: '/v1/cs/app/daily-exam/wrong-analysis/category-detail',
    method: 'get',
    params
  })
}