From 62467438f17f552b7f2e72e7e13968a398d55863 Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期三, 03 九月 2025 15:08:12 +0800
Subject: [PATCH] fix: bug

---
 packages/services/apiV2/enterpriseWallet.ts |  241 +++++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 236 insertions(+), 5 deletions(-)

diff --git a/packages/services/apiV2/enterpriseWallet.ts b/packages/services/apiV2/enterpriseWallet.ts
index 3016da8..944d7dc 100644
--- a/packages/services/apiV2/enterpriseWallet.ts
+++ b/packages/services/apiV2/enterpriseWallet.ts
@@ -7,7 +7,7 @@
   body: API.AlipayFundExpandindirectCreateCommand,
   options?: API.RequestConfig
 ) {
-  return request<boolean>('/api/user/enterpriseWallet/alipayFundExpandindirectCreate', {
+  return request<string>('/api/user/enterpriseWallet/alipayFundExpandindirectCreate', {
     method: 'POST',
     headers: {
       'Content-Type': 'application/json-patch+json',
@@ -17,12 +17,105 @@
   });
 }
 
-/** 璧勯噾浜岀骇鍟嗘埛KYB浠h繘浠剁姸鎬侀�氱煡鎺ュ彛 POST /api/user/enterpriseWallet/alipayFundExpandindirectCreateNotify */
+/** 鏀粯瀹濊祫閲戜簩绾у晢鎴稫YB浠h繘浠剁姸鎬侀�氱煡 POST /api/user/enterpriseWallet/alipayFundExpandindirectCreateNotify */
 export async function alipayFundExpandindirectCreateNotify(
-  body: API.AlipayFundExpandindirectCreateNotifyCommand,
+  body: {
+    /** 閫氱煡ID */
+    notify_id?: string;
+    /** 娑堟伅鍙戦�佹椂鐨勬湇鍔$鏃堕棿 */
+    utc_timestamp?: string;
+    /** 娑堟伅鎺ュ彛鍚嶇О */
+    msg_method?: string;
+    /** 娑堟伅鎺ュ彈鏂圭殑搴旂敤id */
+    app_id?: string;
+    /** 鐗堟湰鍙�(1.1鐗堟湰涓烘爣鍑嗘秷鎭�) */
+    version?: string;
+    /** 娑堟伅鎶ユ枃 */
+    biz_content?: string;
+    /** 绛惧悕 */
+    sign?: string;
+    /** 绛惧悕绫诲瀷 */
+    sign_type?: string;
+    /** 缂栫爜闆嗭紝璇ュ瓧绗﹂泦涓洪獙绛惧拰瑙e瘑鎵�闇�瑕佺殑瀛楃闆� */
+    charset?: string;
+  },
   options?: API.RequestConfig
 ) {
-  return request<boolean>('/api/user/enterpriseWallet/alipayFundExpandindirectCreateNotify', {
+  const formData = new FormData();
+
+  Object.keys(body).forEach((ele) => {
+    const item = (body as any)[ele];
+
+    if (item !== undefined && item !== null) {
+      formData.append(
+        ele,
+        typeof item === 'object' && !(item instanceof File) ? JSON.stringify(item) : item
+      );
+    }
+  });
+
+  return request<string>('/api/user/enterpriseWallet/alipayFundExpandindirectCreateNotify', {
+    method: 'POST',
+    data: formData,
+    requestType: 'form',
+    ...(options || {}),
+  });
+}
+
+/** 鏀粯瀹濊祫閲戜簩绾у晢鎴稫YB浠h繘浠舵枃浠朵笂浼犳帴鍙� POST /api/user/enterpriseWallet/alipayFundExpandindirectImageUpload */
+export async function alipayFundExpandindirectImageUpload(
+  body: {
+    /** 浜у搧鐮� */
+    ProductCode?: string;
+    /** 鍦烘櫙鐮� */
+    BizScene?: string;
+  },
+  File?: File,
+  options?: API.RequestConfig
+) {
+  const formData = new FormData();
+
+  if (File) {
+    formData.append('File', File);
+  }
+
+  Object.keys(body).forEach((ele) => {
+    const item = (body as any)[ele];
+
+    if (item !== undefined && item !== null) {
+      formData.append(
+        ele,
+        typeof item === 'object' && !(item instanceof File) ? JSON.stringify(item) : item
+      );
+    }
+  });
+
+  return request<string>('/api/user/enterpriseWallet/alipayFundExpandindirectImageUpload', {
+    method: 'POST',
+    data: formData,
+    requestType: 'form',
+    ...(options || {}),
+  });
+}
+
+/** 鏀粯瀹濊祫閲戜簩绾у晢鎴稫YB浠h繘浠跺崟鍙栨秷鎺ュ彛 POST /api/user/enterpriseWallet/alipayFundExpandindirectOrderCancel */
+export async function alipayFundExpandindirectOrderCancel(
+  body: API.AlipayFundExpandindirectOrderCancelCommand,
+  options?: API.RequestConfig
+) {
+  return request<string>('/api/user/enterpriseWallet/alipayFundExpandindirectOrderCancel', {
+    method: 'POST',
+    headers: {
+      'Content-Type': 'application/json-patch+json',
+    },
+    data: body,
+    ...(options || {}),
+  });
+}
+
+/** 杞处 POST /api/user/enterpriseWallet/alipayTransfer */
+export async function alipayTransfer(body: API.AlipayTransferCommand, options?: API.RequestConfig) {
+  return request<string>('/api/user/enterpriseWallet/alipayTransfer', {
     method: 'POST',
     headers: {
       'Content-Type': 'application/json-patch+json',
@@ -34,10 +127,68 @@
 
 /** 鏀粯瀹濈敤鎴锋巿鏉冨崗璁绾﹂�氱煡 POST /api/user/enterpriseWallet/alipayUserAgreementPageSignNotify */
 export async function alipayUserAgreementPageSignNotify(
-  body: API.AlipayUserAgreementPageSignNotifyQuery,
+  body: {
+    notify_id?: string;
+    notify_time?: string;
+    sign_type?: string;
+    sign?: string;
+    invalid_time?: string;
+    sign_scene?: string;
+    sign_time?: string;
+    alipay_user_id?: string;
+    status?: string;
+    forex_eligible?: string;
+    external_logon_id?: string;
+    app_id?: string;
+    auth_app_id?: string;
+    external_agreement_no?: string;
+    personal_product_code?: string;
+    valid_time?: string;
+    agreement_no?: string;
+    zm_open_id?: string;
+    alipay_open_id?: string;
+    merchant_app_id?: string;
+    alipay_logon_id?: string;
+    notify_type?: string;
+    zm_score?: string;
+    single_quota?: string;
+    login_token?: string;
+    device_id?: string;
+    credit_auth_mode?: string;
+    specified_sort_assets?: string;
+    partner_id?: string;
+    modify_type?: string;
+    next_deduct_time?: string;
+  },
   options?: API.RequestConfig
 ) {
+  const formData = new FormData();
+
+  Object.keys(body).forEach((ele) => {
+    const item = (body as any)[ele];
+
+    if (item !== undefined && item !== null) {
+      formData.append(
+        ele,
+        typeof item === 'object' && !(item instanceof File) ? JSON.stringify(item) : item
+      );
+    }
+  });
+
   return request<boolean>('/api/user/enterpriseWallet/alipayUserAgreementPageSignNotify', {
+    method: 'POST',
+    data: formData,
+    requestType: 'form',
+    ...(options || {}),
+  });
+}
+
+/** 鍏抽棴浼佷笟閽卞寘 POST /api/user/enterpriseWallet/closeEnterpriseWallet */
+export async function closeEnterpriseWallet(
+  body: API.CloseEnterpriseWalletCommand,
+  options?: API.RequestConfig
+) {
+  return request<string>('/api/user/enterpriseWallet/closeEnterpriseWallet', {
     method: 'POST',
     headers: {
       'Content-Type': 'application/json-patch+json',
@@ -46,3 +197,83 @@
     ...(options || {}),
   });
 }
+
+/** 鏌ヨ鏀粯瀹濊祫閲戜簩绾у晢鎴稫YB浠h繘浠跺崟璇︽儏 GET /api/user/enterpriseWallet/getAlipayFundExpandindirectOrder */
+export async function getAlipayFundExpandindirectOrder(
+  // 鍙犲姞鐢熸垚鐨凱aram绫诲瀷 (闈瀊ody鍙傛暟swagger榛樿娌℃湁鐢熸垚瀵硅薄)
+  params: API.APIgetAlipayFundExpandindirectOrderParams,
+  options?: API.RequestConfig
+) {
+  return request<API.GetAlipayFundExpandindirectOrderQueryResult>(
+    '/api/user/enterpriseWallet/getAlipayFundExpandindirectOrder',
+    {
+      method: 'GET',
+      params: {
+        ...params,
+      },
+      ...(options || {}),
+    }
+  );
+}
+
+/** 鏀粯瀹濋�氱煡鍥炰紶 GET /api/user/enterpriseWallet/getAlipayNotify */
+export async function getAlipayNotify(
+  body: API.GetAlipayNotifyCommand,
+  options?: API.RequestConfig
+) {
+  const formData = new FormData();
+
+  Object.keys(body).forEach((ele) => {
+    const item = (body as any)[ele];
+
+    if (item !== undefined && item !== null) {
+      formData.append(
+        ele,
+        typeof item === 'object' && !(item instanceof File) ? JSON.stringify(item) : item
+      );
+    }
+  });
+
+  return request<boolean>('/api/user/enterpriseWallet/getAlipayNotify', {
+    method: 'GET',
+    data: formData,
+    requestType: 'form',
+    ...(options || {}),
+  });
+}
+
+/** 鏌ヨ浼佷笟閽卞寘璇︽儏 GET /api/user/enterpriseWallet/getEnterpriseWallet */
+export async function getEnterpriseWallet(
+  // 鍙犲姞鐢熸垚鐨凱aram绫诲瀷 (闈瀊ody鍙傛暟swagger榛樿娌℃湁鐢熸垚瀵硅薄)
+  params: API.APIgetEnterpriseWalletParams,
+  options?: API.RequestConfig
+) {
+  return request<API.GetEnterpriseWalletQueryResult>(
+    '/api/user/enterpriseWallet/getEnterpriseWallet',
+    {
+      method: 'GET',
+      params: {
+        ...params,
+      },
+      ...(options || {}),
+    }
+  );
+}
+
+/** 寮�閫氫紒涓氶挶鍖� POST /api/user/enterpriseWallet/openEnterpriseWallet */
+export async function openEnterpriseWallet(
+  body: API.OpenEnterpriseWalletCommand,
+  options?: API.RequestConfig
+) {
+  return request<API.OpenEnterpriseWalletCommandResult>(
+    '/api/user/enterpriseWallet/openEnterpriseWallet',
+    {
+      method: 'POST',
+      headers: {
+        'Content-Type': 'application/json-patch+json',
+      },
+      data: body,
+      ...(options || {}),
+    }
+  );
+}

--
Gitblit v1.9.1