diff --git a/src/api/his.ts b/src/api/his.ts index af41106..d380308 100644 --- a/src/api/his.ts +++ b/src/api/his.ts @@ -44,6 +44,8 @@ import type { B1ServiceBoardResponse, InputNorth3ServiceBoard, North3ServiceBoardResponse, + InputReportSendQRcode, + ReportSendQRcodeResponse, } from './types'; /** @@ -360,3 +362,15 @@ export const getNorth3ServiceBoard = ( ).then(res => res.data); }; +/** + * 报告寄送登记二维码 + */ +export const getReportSendQRcode = ( + data: InputReportSendQRcode +): Promise => { + return request.post( + `${MEDICAL_EXAM_BASE_PATH}/report-send-qrcode`, + data + ).then(res => res.data); +}; + diff --git a/src/api/types.ts b/src/api/types.ts index fc6ec85..3310136 100644 --- a/src/api/types.ts +++ b/src/api/types.ts @@ -784,3 +784,24 @@ export interface OutputNorth3ServiceBoard { */ export type North3ServiceBoardResponse = CommonActionResult; +/** + * 报告寄送登记二维码入参 + */ +export interface InputReportSendQRcode { + /** 预约ID */ + appointment_id: string; +} + +/** + * 报告寄送登记二维码出参 + */ +export interface OutputReportSendQRcode { + /** 二维码地址(Base64) */ + qrcode_url: string; +} + +/** + * 报告寄送登记二维码响应 + */ +export type ReportSendQRcodeResponse = CommonActionResult; +