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

import * as API from './types';

/** 修改钱包提现记录 PUT /xjpmj/withdrawalRecord */
export async function xjpmjWithdrawalRecordPut({
  body,
  options,
}: {
  body: API.WithdrawalRecordBoEditGroup;
  options?: CustomRequestOptions;
}) {
  return request<API.RVoid>('/xjpmj/withdrawalRecord', {
    method: 'PUT',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 新增钱包提现记录 POST /xjpmj/withdrawalRecord */
export async function xjpmjWithdrawalRecordPost({
  body,
  options,
}: {
  body: API.WithdrawalRecordBoAddGroup;
  options?: CustomRequestOptions;
}) {
  return request<API.RVoid>('/xjpmj/withdrawalRecord', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 获取钱包提现记录详细信息 GET /xjpmj/withdrawalRecord/${param0} */
export async function xjpmjWithdrawalRecordIdGet({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.XjpmjWithdrawalRecordidGetParams;
  options?: CustomRequestOptions;
}) {
  const { id: param0, ...queryParams } = params;

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

/** 删除钱包提现记录 DELETE /xjpmj/withdrawalRecord/${param0} */
export async function xjpmjWithdrawalRecordIdsDelete({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.XjpmjWithdrawalRecordidsDeleteParams;
  options?: CustomRequestOptions;
}) {
  const { ids: param0, ...queryParams } = params;

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

/** 提现审核 POST /xjpmj/withdrawalRecord/audit */
export async function xjpmjWithdrawalRecordAuditPost({
  body,
  options,
}: {
  body: API.AuditBo;
  options?: CustomRequestOptions;
}) {
  return request<API.RVoid>('/xjpmj/withdrawalRecord/audit', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 导出钱包提现记录列表 POST /xjpmj/withdrawalRecord/export */
export async function xjpmjWithdrawalRecordExportPost({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.XjpmjWithdrawalRecordExportPostParams;
  options?: CustomRequestOptions;
}) {
  return request<API.XjpmjWithdrawalRecordExportPostResponse>(
    '/xjpmj/withdrawalRecord/export',
    {
      method: 'POST',
      params: {
        ...params,
      },
      ...(options || {}),
    }
  );
}

/** 查询钱包提现记录列表 GET /xjpmj/withdrawalRecord/list */
export async function xjpmjWithdrawalRecordListGet({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.XjpmjWithdrawalRecordListGetParams;
  options?: CustomRequestOptions;
}) {
  return request<API.TableDataInfoWithdrawalRecordVo>(
    '/xjpmj/withdrawalRecord/list',
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    }
  );
}
