添加pdf接口
This commit is contained in:
@@ -14,6 +14,8 @@ import type {
|
|||||||
CustomerDetailResponse,
|
CustomerDetailResponse,
|
||||||
InputMedicalExamCenterSignIn,
|
InputMedicalExamCenterSignIn,
|
||||||
PhysicalExamSignInResponse,
|
PhysicalExamSignInResponse,
|
||||||
|
InputTongyishuInfo,
|
||||||
|
TongyishuGetResponse,
|
||||||
} from './types';
|
} from './types';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -112,3 +114,15 @@ export const signInMedicalExamCenter = (
|
|||||||
).then(res => res.data);
|
).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);
|
||||||
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -272,3 +272,38 @@ export interface OutputPhysicalExamSignIn {
|
|||||||
*/
|
*/
|
||||||
export type PhysicalExamSignInResponse = CommonActionResult<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>;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user