添加pdf接口

This commit is contained in:
xianyi
2025-12-11 11:11:44 +08:00
parent b5aaf19897
commit 364f85fb9c
2 changed files with 49 additions and 0 deletions

View File

@@ -14,6 +14,8 @@ import type {
CustomerDetailResponse,
InputMedicalExamCenterSignIn,
PhysicalExamSignInResponse,
InputTongyishuInfo,
TongyishuGetResponse,
} from './types';
/**
@@ -112,3 +114,15 @@ export const signInMedicalExamCenter = (
).then(res => res.data);
};
/**
* 获取体检知情同意书PDF
*/
export const getTongyishuPdf = (
data: InputTongyishuInfo
): Promise<TongyishuGetResponse> => {
return request.post<TongyishuGetResponse>(
`${MEDICAL_EXAM_BASE_PATH}/tongyishu-get`,
data
).then(res => res.data);
};

View File

@@ -272,3 +272,38 @@ export interface OutputPhysicalExamSignIn {
*/
export type PhysicalExamSignInResponse = CommonActionResult<OutputPhysicalExamSignIn>;
/**
* 获取体检知情同意书入参
*/
export interface InputTongyishuInfo {
/** 体检ID */
exam_id: number;
}
/**
* 知情同意书文件信息
*/
export interface OutputTongyishuFileInfo {
/** 组合代码 */
combination_code?: number | null;
/** 知情同意书文件名称 */
pdf_name: string;
/** 知情同意书PDF文件地址 */
pdf_url: string;
}
/**
* 获取体检知情同意书出参
*/
export interface OutputTongyishuInfo {
/** 知情同意书PDF文件url */
list_pdf_url?: OutputTongyishuFileInfo[] | null;
/** 消息内容 */
message?: string | null;
}
/**
* 获取体检知情同意书响应
*/
export type TongyishuGetResponse = CommonActionResult<OutputTongyishuInfo>;