添加 Native-生成扫码支付二维码

This commit is contained in:
xianyi
2025-12-22 17:37:57 +08:00
parent 9f471db313
commit 70db8db974
2 changed files with 41 additions and 0 deletions

View File

@@ -24,6 +24,8 @@ import type {
CustomerDetailEditResponse,
InputPhysicalExamAddItem,
PhysicalExamAddItemListResponse,
InputPhysicalExamAddOrder,
PhysicalExamQrcodeCreateResponse,
InputPhysicalExamDiningLog,
PhysicalExamDiningLogResponse,
InputTijianDiningLog,
@@ -210,6 +212,18 @@ export const searchPhysicalExamAddItem = (
).then(res => res.data);
};
/**
* Native-生成扫码支付二维码
*/
export const createNativePaymentQrcode = (
data: InputPhysicalExamAddOrder
): Promise<PhysicalExamQrcodeCreateResponse> => {
return request.post<PhysicalExamQrcodeCreateResponse>(
`${MEDICAL_EXAM_BASE_PATH}/qrcode-create`,
data
).then(res => res.data);
};
/**
* 提交体检签名生成导检单PDF
*/

View File

@@ -416,6 +416,33 @@ export interface OutputPhysicalExamAddItem {
*/
export type PhysicalExamAddItemListResponse = CommonActionResult<OutputPhysicalExamAddItem[]>;
/**
* 体检加项支付记录入参(生成扫码支付二维码)
*/
export interface InputPhysicalExamAddOrder {
/** 体检ID */
physical_exam_id: number;
/** 用户姓名 */
userName: string;
/** 用户手机号 */
userPhone: string;
/** 体检加项产品ID列表逗号分隔 */
addItemIds: string;
/** 微信Native产品ID */
nativeProductId: string;
/** 订单金额(元) */
orderAmount: number;
/** 订单来源mini_program-小程序app-app应用等 */
source: string;
/** 商户ID可选不传则使用默认商户 */
merchantId?: string | null;
}
/**
* 生成扫码支付二维码响应
*/
export type PhysicalExamQrcodeCreateResponse = CommonActionResult<string>;
/**
* 体检用餐登记列表入参
*/