From 99bafe2a2588853c2dd4c73c2d2a2cb1837bf688 Mon Sep 17 00:00:00 2001 From: wupengfei <834520024@qq.com> Date: 星期四, 21 八月 2025 17:16:40 +0800 Subject: [PATCH] feat: 实名 --- packages/services/apiV2/ocrUtils.ts | 43 +++++++++++++++++++++++++++++++++++-------- 1 files changed, 35 insertions(+), 8 deletions(-) diff --git a/packages/services/apiV2/ocrUtils.ts b/packages/services/apiV2/ocrUtils.ts index 4601bae..75d1669 100644 --- a/packages/services/apiV2/ocrUtils.ts +++ b/packages/services/apiV2/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