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

import * as API from './types';

/** 修改炒菜机报名 PUT /xjpmj/automaticCookingMachineRegistration */
export async function xjpmjAutomaticCookingMachineRegistrationPut({
  body,
  options,
}: {
  body: API.AutomaticCookingMachineRegistrationBoEditGroup;
  options?: CustomRequestOptions;
}) {
  return request<API.RVoid>('/xjpmj/automaticCookingMachineRegistration', {
    method: 'PUT',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 获取炒菜机报名详细信息 GET /xjpmj/automaticCookingMachineRegistration/${param0} */
export async function xjpmjAutomaticCookingMachineRegistrationIdGet({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.XjpmjAutomaticCookingMachineRegistrationidGetParams;
  options?: CustomRequestOptions;
}) {
  const { id: param0, ...queryParams } = params;

  return request<API.RAutomaticCookingMachineRegistrationVo>(
    `/xjpmj/automaticCookingMachineRegistration/${param0}`,
    {
      method: 'GET',
      params: { ...queryParams },
      ...(options || {}),
    }
  );
}

/** 删除炒菜机报名 DELETE /xjpmj/automaticCookingMachineRegistration/${param0} */
export async function xjpmjAutomaticCookingMachineRegistrationIdsDelete({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.XjpmjAutomaticCookingMachineRegistrationidsDeleteParams;
  options?: CustomRequestOptions;
}) {
  const { ids: param0, ...queryParams } = params;

  return request<API.RVoid>(
    `/xjpmj/automaticCookingMachineRegistration/${param0}`,
    {
      method: 'DELETE',
      params: { ...queryParams },
      ...(options || {}),
    }
  );
}

/** 查询炒菜机报名列表 POST /xjpmj/automaticCookingMachineRegistration/list */
export async function xjpmjAutomaticCookingMachineRegistrationListPost({
  params,
  body,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.XjpmjAutomaticCookingMachineRegistrationListPostParams;
  body: API.AutomaticCookingMachineRegistrationBo;
  options?: CustomRequestOptions;
}) {
  return request<API.TableDataInfoAutomaticCookingMachineRegistrationVo>(
    '/xjpmj/automaticCookingMachineRegistration/list',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
      },
      params: {
        ...params,
      },
      data: body,
      ...(options || {}),
    }
  );
}
