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

import * as API from './types';

/** 创建阅卷任务记录 创建单个阅卷任务记录 POST /marking-task-records */
export async function markingTaskRecordsUsingPost({
  body,
  options,
}: {
  body: API.CreateMarkingTaskRecordRequest;
  options?: CustomRequestOptions;
}) {
  return request<
    API.Response & {
      data?: API.MarkingTaskRecordResponse;
    }
  >('/marking-task-records', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 批量创建阅卷任务记录 批量创建阅卷任务记录 POST /marking-task-records/batch */
export async function markingTaskRecordsBatchUsingPost({
  body,
  options,
}: {
  body: API.BatchCreateMarkingTaskRecordRequest;
  options?: CustomRequestOptions;
}) {
  return request<
    API.Response & {
      data?: API.BatchMarkingTaskRecordResponse;
    }
  >('/marking-task-records/batch', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
