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

import * as API from './types';

/** 申请入驻店铺 POST /app/shopSettlement/apply */
export async function appShopSettlementApplyPost({
  body,
  options,
}: {
  body: API.ShopSettlementBo;
  options?: CustomRequestOptions;
}) {
  return request<API.R>('/app/shopSettlement/apply', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 查询入驻详情 GET /app/shopSettlement/detail */
export async function appShopSettlementDetailGet({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.AppShopSettlementDetailGetParams;
  options?: CustomRequestOptions;
}) {
  return request<API.RShopSettlementVo>('/app/shopSettlement/detail', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 查询入驻列表 GET /app/shopSettlement/list */
export async function appShopSettlementListGet({
  options,
}: {
  options?: CustomRequestOptions;
}) {
  return request<API.RListShopSettlementVo>('/app/shopSettlement/list', {
    method: 'GET',
    ...(options || {}),
  });
}

/** 获取店铺入驻详细信息 GET /xjpmj/shopSettlement/${param0} */
export async function xjpmjShopSettlementIdGet({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.XjpmjShopSettlementidGetParams;
  options?: CustomRequestOptions;
}) {
  const { id: param0, ...queryParams } = params;

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

/** 审核店铺入驻结果 POST /xjpmj/shopSettlement/audit */
export async function xjpmjShopSettlementAuditPost({
  body,
  options,
}: {
  body: API.ShopSettlementBo;
  options?: CustomRequestOptions;
}) {
  return request<API.RBoolean>('/xjpmj/shopSettlement/audit', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 导出店铺入驻列表 POST /xjpmj/shopSettlement/export */
export async function xjpmjShopSettlementExportPost({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.XjpmjShopSettlementExportPostParams;
  options?: CustomRequestOptions;
}) {
  return request<API.XjpmjShopSettlementExportPostResponse>(
    '/xjpmj/shopSettlement/export',
    {
      method: 'POST',
      params: {
        ...params,
      },
      ...(options || {}),
    }
  );
}

/** 查询店铺入驻列表 POST /xjpmj/shopSettlement/list */
export async function xjpmjShopSettlementListPost({
  params,
  body,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.XjpmjShopSettlementListPostParams;
  body: API.ShopSettlementBo;
  options?: CustomRequestOptions;
}) {
  return request<API.TableDataInfoShopSettlementVo>(
    '/xjpmj/shopSettlement/list',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
      },
      params: {
        ...params,
      },
      data: body,
      ...(options || {}),
    }
  );
}
