添加 Native-生成扫码支付二维码
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
@@ -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>;
|
||||
|
||||
/**
|
||||
* 体检用餐登记列表入参
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user