添加 查看报告寄送地址接口

This commit is contained in:
xianyi
2025-12-17 14:21:31 +08:00
parent 9163751e0e
commit 2c594debc9
2 changed files with 39 additions and 0 deletions

View File

@@ -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<ReportSendInfoResponse> => {
return request.post<ReportSendInfoResponse>(
`${MEDICAL_EXAM_BASE_PATH}/report-send-info`,
data
).then(res => res.data);
};

View File

@@ -805,3 +805,28 @@ export interface OutputReportSendQRcode {
*/
export type ReportSendQRcodeResponse = CommonActionResult<OutputReportSendQRcode>;
/**
* 查看报告寄送地址入参
*/
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<OutputReportSendInfo>;