wupengfei
5 天以前 609eb7a2d87dc7ce0546bf55d6096ea660f8f9be
src/services/api/enterpriseWallet.ts
@@ -295,6 +295,24 @@
  );
}
/** 查询企业微信支付钱包详情 GET /api/user/enterpriseWallet/getEnterpriseWeChatPayWallet */
export async function getEnterpriseWeChatPayWallet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.APIgetEnterpriseWeChatPayWalletParams,
  options?: API.RequestConfig
) {
  return request<API.GetEnterpriseWeChatPayWalletQueryResult>(
    '/api/user/enterpriseWallet/getEnterpriseWeChatPayWallet',
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    }
  );
}
/** 开通企业钱包 POST /api/user/enterpriseWallet/openEnterpriseWallet */
export async function openEnterpriseWallet(
  body: API.OpenEnterpriseWalletCommand,
@@ -302,6 +320,24 @@
) {
  return request<API.OpenEnterpriseWalletCommandResult>(
    '/api/user/enterpriseWallet/openEnterpriseWallet',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json-patch+json',
      },
      data: body,
      ...(options || {}),
    }
  );
}
/** 开通企业微信钱包 POST /api/user/enterpriseWallet/openEnterpriseWeChatPayWallet */
export async function openEnterpriseWeChatPayWallet(
  body: API.OpenEnterpriseWeChatPayWalletCommand,
  options?: API.RequestConfig
) {
  return request<API.OpenEnterpriseWeChatPayWalletCommandResult>(
    '/api/user/enterpriseWallet/openEnterpriseWeChatPayWallet',
    {
      method: 'POST',
      headers: {
@@ -330,3 +366,15 @@
    }
  );
}
/** 测试微信支付 POST /api/user/enterpriseWallet/testWeChatPay */
export async function testWeChatPay(body: API.TestWeChatPayCommand, options?: API.RequestConfig) {
  return request<boolean>('/api/user/enterpriseWallet/testWeChatPay', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json-patch+json',
    },
    data: body,
    ...(options || {}),
  });
}