添加 Native-查询支付是否成功

This commit is contained in:
xianyi
2025-12-22 17:43:54 +08:00
parent 70db8db974
commit 8c07b32f0d
2 changed files with 29 additions and 0 deletions

View File

@@ -26,6 +26,8 @@ import type {
PhysicalExamAddItemListResponse, PhysicalExamAddItemListResponse,
InputPhysicalExamAddOrder, InputPhysicalExamAddOrder,
PhysicalExamQrcodeCreateResponse, PhysicalExamQrcodeCreateResponse,
InputOrderPaymentInfo,
PhysicalExamIsPaymentResponse,
InputPhysicalExamDiningLog, InputPhysicalExamDiningLog,
PhysicalExamDiningLogResponse, PhysicalExamDiningLogResponse,
InputTijianDiningLog, InputTijianDiningLog,
@@ -224,6 +226,18 @@ export const createNativePaymentQrcode = (
).then(res => res.data); ).then(res => res.data);
}; };
/**
* Native-查询支付是否成功
*/
export const checkNativePaymentStatus = (
data: InputOrderPaymentInfo
): Promise<PhysicalExamIsPaymentResponse> => {
return request.post<PhysicalExamIsPaymentResponse>(
`${MEDICAL_EXAM_BASE_PATH}/is-payment`,
data
).then(res => res.data);
};
/** /**
* 提交体检签名生成导检单PDF * 提交体检签名生成导检单PDF
*/ */

View File

@@ -443,6 +443,21 @@ export interface InputPhysicalExamAddOrder {
*/ */
export type PhysicalExamQrcodeCreateResponse = CommonActionResult<string>; export type PhysicalExamQrcodeCreateResponse = CommonActionResult<string>;
/**
* 体检支付结果查询入参Native 查询支付是否成功)
*/
export interface InputOrderPaymentInfo {
/** 体检ID */
physical_exam_id: number;
/** 订单编号 */
order_id: string;
}
/**
* 体检支付结果查询响应
*/
export type PhysicalExamIsPaymentResponse = CommonActionResult<string>;
/** /**
* 体检用餐登记列表入参 * 体检用餐登记列表入参
*/ */