From d7c8a3a9e1fc5c8e596a17cdadb7079d20e52297 Mon Sep 17 00:00:00 2001 From: zhengyiming <540361168@qq.com> Date: 星期四, 21 八月 2025 15:12:02 +0800 Subject: [PATCH] fix: 签约 --- src/services/api/ocrUtils.ts | 43 +++++++++++++++++++++++++++++++++++-------- 1 files changed, 35 insertions(+), 8 deletions(-) diff --git a/src/services/api/ocrUtils.ts b/src/services/api/ocrUtils.ts index 4601bae..75d1669 100644 --- a/src/services/api/ocrUtils.ts +++ b/src/services/api/ocrUtils.ts @@ -2,17 +2,44 @@ // @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/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