From 258b6ce3a359bceb354ca3ea55c73bfb0cad0dc1 Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期四, 04 九月 2025 17:47:14 +0800
Subject: [PATCH] feat: 页面

---
 src/services/api/enterpriseWallet.ts |  315 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 312 insertions(+), 3 deletions(-)

diff --git a/src/services/api/enterpriseWallet.ts b/src/services/api/enterpriseWallet.ts
index 343ba99..b03ba6d 100644
--- a/src/services/api/enterpriseWallet.ts
+++ b/src/services/api/enterpriseWallet.ts
@@ -2,13 +2,322 @@
 // @ts-ignore
 import { request } from '@/utils/request';
 
-/** 鏀粯瀹濈敤鎴锋巿鏉冨崗璁绾﹂�氱煡 POST /api/user/enterpriseWallet/alipayUserAgreementPageSignNotify */
-export async function alipayUserAgreementPageSignNotify(
-  body: API.AlipayUserAgreementPageSignNotifyQuery,
+/** 鏀粯瀹濊祫閲戜簩绾у晢鎴稫YB浠h繘浠剁姸鎬侀�氱煡 POST /api/user/enterpriseWallet/alipayFundExpandindirectCreateNotify */
+export async function alipayFundExpandindirectCreateNotify(
+  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
 ) {
+  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 || {}),
+  });
+}
+
+/** 璧勯噾鍗曟嵁鐘舵�佸彉鏇撮�氱煡 POST /api/user/enterpriseWallet/alipayFundTransOrderChangedNotify */
+export async function alipayFundTransOrderChangedNotify(
+  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
+) {
+  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/alipayFundTransOrderChangedNotify', {
+    method: 'POST',
+    data: formData,
+    requestType: 'form',
+    ...(options || {}),
+  });
+}
+
+/** 鏀粯瀹濈敤鎴锋巿鏉冨崗璁绾﹂�氱煡 POST /api/user/enterpriseWallet/alipayUserAgreementPageSignNotify */
+export async function alipayUserAgreementPageSignNotify(
+  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',
+    },
+    data: body,
+    ...(options || {}),
+  });
+}
+
+/** 鏀粯瀹濊祫閲戜簩绾у晢鎴稫YB浠h繘浠� POST /api/user/enterpriseWallet/enterpriseWalletExpandindirectCreate */
+export async function enterpriseWalletExpandindirectCreate(
+  body: API.EnterpriseWalletExpandindirectCreateCommand,
+  options?: API.RequestConfig
+) {
+  return request<string>('/api/user/enterpriseWallet/enterpriseWalletExpandindirectCreate', {
+    method: 'POST',
+    headers: {
+      'Content-Type': 'application/json-patch+json',
+    },
+    data: body,
+    ...(options || {}),
+  });
+}
+
+/** 鏀粯瀹濊祫閲戜簩绾у晢鎴稫YB浠h繘浠跺崟鍙栨秷鎺ュ彛 POST /api/user/enterpriseWallet/enterpriseWalletExpandindirectOrderCancel */
+export async function enterpriseWalletExpandindirectOrderCancel(
+  body: API.EnterpriseWalletExpandindirectOrderCancelCommand,
+  options?: API.RequestConfig
+) {
+  return request<string>('/api/user/enterpriseWallet/enterpriseWalletExpandindirectOrderCancel', {
+    method: 'POST',
+    headers: {
+      'Content-Type': 'application/json-patch+json',
+    },
+    data: body,
+    ...(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 || {}),
+    }
+  );
+}
+
+/** 鏌ヨ鏀粯瀹濊祫閲戜簩绾у晢鎴稫YB浠h繘浠跺崟璇︽儏 GET /api/user/enterpriseWallet/getEnterpriseWalletExpandindirectOrder */
+export async function getEnterpriseWalletExpandindirectOrder(
+  // 鍙犲姞鐢熸垚鐨凱aram绫诲瀷 (闈瀊ody鍙傛暟swagger榛樿娌℃湁鐢熸垚瀵硅薄)
+  params: API.APIgetEnterpriseWalletExpandindirectOrderParams,
+  options?: API.RequestConfig
+) {
+  return request<API.GetEnterpriseWalletExpandindirectOrderQueryResult>(
+    '/api/user/enterpriseWallet/getEnterpriseWalletExpandindirectOrder',
+    {
+      method: 'GET',
+      params: {
+        ...params,
+      },
+      ...(options || {}),
+    }
+  );
+}
+
+/** 鏌ヨ浼佷笟閽卞寘浜ゆ槗璇︽儏 GET /api/user/enterpriseWallet/getEnterpriseWalletTransaction */
+export async function getEnterpriseWalletTransaction(
+  // 鍙犲姞鐢熸垚鐨凱aram绫诲瀷 (闈瀊ody鍙傛暟swagger榛樿娌℃湁鐢熸垚瀵硅薄)
+  params: API.APIgetEnterpriseWalletTransactionParams,
+  options?: API.RequestConfig
+) {
+  return request<API.GetEnterpriseWalletTransactionQueryResult>(
+    '/api/user/enterpriseWallet/getEnterpriseWalletTransaction',
+    {
+      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 || {}),
+    }
+  );
+}
+
+/** 浼佷笟閽卞寘鍏呭�� POST /api/user/enterpriseWallet/rechargeEnterpriseWallet */
+export async function rechargeEnterpriseWallet(
+  body: API.RechargeEnterpriseWalletCommand,
+  options?: API.RequestConfig
+) {
+  return request<API.RechargeEnterpriseWalletCommandResult>(
+    '/api/user/enterpriseWallet/rechargeEnterpriseWallet',
+    {
+      method: 'POST',
+      headers: {
+        'Content-Type': 'application/json-patch+json',
+      },
+      data: body,
+      ...(options || {}),
+    }
+  );
+}
+
+/** 浼佷笟閽卞寘杞处 POST /api/user/enterpriseWallet/transferEnterpriseWallet */
+export async function transferEnterpriseWallet(
+  body: API.TransferEnterpriseWalletCommand,
+  options?: API.RequestConfig
+) {
+  return request<string>('/api/user/enterpriseWallet/transferEnterpriseWallet', {
+    method: 'POST',
     headers: {
       'Content-Type': 'application/json-patch+json',
     },

--
Gitblit v1.9.1