添加iPad签到功能

This commit is contained in:
xianyi
2025-12-10 17:55:20 +08:00
parent 6d68d618b7
commit b5aaf19897
3 changed files with 133 additions and 22 deletions

View File

@@ -12,6 +12,8 @@ import type {
PhysicalExamProgressDetailResponse,
InputCustomerDetail,
CustomerDetailResponse,
InputMedicalExamCenterSignIn,
PhysicalExamSignInResponse,
} from './types';
/**
@@ -98,3 +100,15 @@ export const getCustomerDetail = (
).then(res => res.data);
};
/**
* iPad 体检中心签到
*/
export const signInMedicalExamCenter = (
data: InputMedicalExamCenterSignIn
): Promise<PhysicalExamSignInResponse> => {
return request.post<PhysicalExamSignInResponse>(
`${MEDICAL_EXAM_BASE_PATH}/sign-in`,
data
).then(res => res.data);
};

View File

@@ -251,3 +251,24 @@ export interface OutputCustomerDetail {
*/
export type CustomerDetailResponse = CommonActionResult<OutputCustomerDetail>;
/**
* 体检中心签到入参
*/
export interface InputMedicalExamCenterSignIn {
/** 身份证号 */
id_no: string;
}
/**
* 体检中心签到出参
*/
export interface OutputPhysicalExamSignIn {
/** 是否签到成功0-成功 1-失败) */
is_success?: number | null;
}
/**
* 体检中心签到响应
*/
export type PhysicalExamSignInResponse = CommonActionResult<OutputPhysicalExamSignIn>;