From ff185cfb6950ad2d7472f83c2bbf3c0364cde1f7 Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期日, 19 十月 2025 14:38:25 +0800
Subject: [PATCH] feat: 1.2.0.1
---
packages/services/apiV2/ocrUtils.ts | 55 +++++++++++++++++++++++++++++++++++++++++++++++--------
1 files changed, 47 insertions(+), 8 deletions(-)
diff --git a/packages/services/apiV2/ocrUtils.ts b/packages/services/apiV2/ocrUtils.ts
index 4601bae..c342ddd 100644
--- a/packages/services/apiV2/ocrUtils.ts
+++ b/packages/services/apiV2/ocrUtils.ts
@@ -2,17 +2,56 @@
// @ts-ignore
import { request } from '@/utils/request';
-/** 鏂囧瓧璇嗗埆钀ヤ笟鎵х収 GET /api/common/ocrUtils/getLicenseOcr */
-export async function getLicenseOcr(
- // 鍙犲姞鐢熸垚鐨凱aram绫诲瀷 (闈瀊ody鍙傛暟swagger榛樿娌℃湁鐢熸垚瀵硅薄)
- params: API.APIgetLicenseOcrParams,
+/** 鏌ヨ閾惰鍗¤瘑鍒� POST /api/common/ocrUtils/getBankOcr */
+export async function getBankOcr(body: API.GetBankOcrCommand, options?: API.RequestConfig) {
+ return request<API.GetBankOcrCommandResult>('/api/common/ocrUtils/getBankOcr', {
+ method: 'POST',
+ headers: {
+ 'Content-Type': 'application/json-patch+json',
+ },
+ data: body,
+ ...(options || {}),
+ });
+}
+
+/** 鏂囧瓧璇嗗埆韬唤璇佽儗闈� POST /api/common/ocrUtils/getIdentityBackOcr */
+export async function getIdentityBackOcr(
+ body: API.GetIdentityBackOcrCommand,
options?: API.RequestConfig
) {
- return request<API.GetLicenseOcrCommandResult>('/api/common/ocrUtils/getLicenseOcr', {
- method: 'GET',
- params: {
- ...params,
+ return request<API.GetIdentityBackOcrCommandResult>('/api/common/ocrUtils/getIdentityBackOcr', {
+ method: 'POST',
+ headers: {
+ 'Content-Type': 'application/json-patch+json',
},
+ data: body,
+ ...(options || {}),
+ });
+}
+
+/** 鏂囧瓧璇嗗埆韬唤璇佹闈� POST /api/common/ocrUtils/getIdentityFrontOcr */
+export async function getIdentityFrontOcr(
+ body: API.GetIdentityFrontOcrCommand,
+ options?: API.RequestConfig
+) {
+ return request<API.GetIdentityFrontOcrCommandResult>('/api/common/ocrUtils/getIdentityFrontOcr', {
+ method: 'POST',
+ headers: {
+ 'Content-Type': 'application/json-patch+json',
+ },
+ data: body,
+ ...(options || {}),
+ });
+}
+
+/** 鏂囧瓧璇嗗埆钀ヤ笟鎵х収 POST /api/common/ocrUtils/getLicenseOcr */
+export async function getLicenseOcr(body: API.GetLicenseOcrCommand, options?: API.RequestConfig) {
+ return request<API.GetLicenseOcrCommandResult>('/api/common/ocrUtils/getLicenseOcr', {
+ method: 'POST',
+ headers: {
+ 'Content-Type': 'application/json-patch+json',
+ },
+ data: body,
...(options || {}),
});
}
--
Gitblit v1.9.1