From 8c07b32f0d8a4134498ef20340b013ecaaa9cb5f Mon Sep 17 00:00:00 2001 From: xianyi Date: Mon, 22 Dec 2025 17:43:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20Native-=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E6=94=AF=E4=BB=98=E6=98=AF=E5=90=A6=E6=88=90=E5=8A=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/his.ts | 14 ++++++++++++++ src/api/types.ts | 15 +++++++++++++++ 2 files changed, 29 insertions(+) diff --git a/src/api/his.ts b/src/api/his.ts index 7974d2f..323ab6a 100644 --- a/src/api/his.ts +++ b/src/api/his.ts @@ -26,6 +26,8 @@ import type { PhysicalExamAddItemListResponse, InputPhysicalExamAddOrder, PhysicalExamQrcodeCreateResponse, + InputOrderPaymentInfo, + PhysicalExamIsPaymentResponse, InputPhysicalExamDiningLog, PhysicalExamDiningLogResponse, InputTijianDiningLog, @@ -224,6 +226,18 @@ export const createNativePaymentQrcode = ( ).then(res => res.data); }; +/** + * Native-查询支付是否成功 + */ +export const checkNativePaymentStatus = ( + data: InputOrderPaymentInfo +): Promise => { + return request.post( + `${MEDICAL_EXAM_BASE_PATH}/is-payment`, + data + ).then(res => res.data); +}; + /** * 提交体检签名生成导检单PDF */ diff --git a/src/api/types.ts b/src/api/types.ts index b51c27b..59fba40 100644 --- a/src/api/types.ts +++ b/src/api/types.ts @@ -443,6 +443,21 @@ export interface InputPhysicalExamAddOrder { */ export type PhysicalExamQrcodeCreateResponse = CommonActionResult; +/** + * 体检支付结果查询入参(Native 查询支付是否成功) + */ +export interface InputOrderPaymentInfo { + /** 体检ID */ + physical_exam_id: number; + /** 订单编号 */ + order_id: string; +} + +/** + * 体检支付结果查询响应 + */ +export type PhysicalExamIsPaymentResponse = CommonActionResult; + /** * 体检用餐登记列表入参 */