| | |
| | | // @ts-ignore |
| | | import { request } from '@/utils/request'; |
| | | |
| | | /** 文字识别营业执照 GET /api/common/ocrUtils/getLicenseOcr */ |
| | | export async function getLicenseOcr( |
| | | // 叠加生成的Param类型 (非body参数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 || {}), |
| | | }); |
| | | } |