diff --git a/src/api/his.ts b/src/api/his.ts index d380308..0ba0927 100644 --- a/src/api/his.ts +++ b/src/api/his.ts @@ -46,6 +46,8 @@ import type { North3ServiceBoardResponse, InputReportSendQRcode, ReportSendQRcodeResponse, + InputReportSendInfo, + ReportSendInfoResponse, } from './types'; /** @@ -374,3 +376,15 @@ export const getReportSendQRcode = ( ).then(res => res.data); }; +/** + * 查看报告寄送地址 + */ +export const getReportSendInfo = ( + data: InputReportSendInfo +): Promise => { + return request.post( + `${MEDICAL_EXAM_BASE_PATH}/report-send-info`, + data + ).then(res => res.data); +}; + diff --git a/src/api/types.ts b/src/api/types.ts index 3310136..5045d35 100644 --- a/src/api/types.ts +++ b/src/api/types.ts @@ -805,3 +805,28 @@ export interface OutputReportSendQRcode { */ export type ReportSendQRcodeResponse = CommonActionResult; +/** + * 查看报告寄送地址入参 + */ +export interface InputReportSendInfo { + /** 预约ID */ + appointment_id: number; +} + +/** + * 查看报告寄送地址出参 + */ +export interface OutputReportSendInfo { + /** 收件人 */ + address_contact?: string | null; + /** 联系电话 */ + address_mobile?: string | null; + /** 寄送地址 */ + address_content?: string | null; +} + +/** + * 查看报告寄送地址响应 + */ +export type ReportSendInfoResponse = CommonActionResult; +