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

import * as API from './types';

/**  获取题目统计信息 获取某次考试的题目统计信息 POST /teacher-analysis/question-detail */
export async function teacherAnalysisQuestionDetailUsingPost({
  body,
  options,
}: {
  body: API.GetQuestionDetailRequest;
  options?: CustomRequestOptions;
}) {
  return request<
    API.Response & {
      data?: API.GetQuestionDetailResponse;
    }
  >('/teacher-analysis/question-detail', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/**  获取题目统计信息 获取某次考试的题目统计信息 POST /teacher-analysis/question-score-detail */
export async function teacherAnalysisQuestionScoreDetailUsingPost({
  body,
  options,
}: {
  body: API.GetQuestionDetailRequest;
  options?: CustomRequestOptions;
}) {
  return request<
    API.Response & {
      data?: API.GetQuestionDetailResponse;
    }
  >('/teacher-analysis/question-score-detail', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/**  获取题目统计信息 获取最近几次的题目统计信息 POST /teacher-analysis/question-stat */
export async function teacherAnalysisQuestionStatUsingPost({
  body,
  options,
}: {
  body: API.GetQuestionStatRequest;
  options?: CustomRequestOptions;
}) {
  return request<
    API.Response & {
      data?: API.GetQuestionStatResponse;
    }
  >('/teacher-analysis/question-stat', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
