/* eslint-disable */
// @ts-ignore
import request from '@/http/vue-query';
import { CustomRequestOptions } from '@/http/types';

import * as API from './types';

/** 获取班级对比分析数据 获取班级对比分析数据，包括平均分对比、平均分排名对比、年级前N名数量对比 POST /class-comparison/data */
export async function classComparisonDataUsingPost({
  body,
  options,
}: {
  body: API.ClassComparisonRequest;
  options?: CustomRequestOptions;
}) {
  return request<
    API.Response & {
      data?: API.ClassComparisonResponse;
    }
  >('/class-comparison/data', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
