添加iPad签到功能
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
|
||||
@@ -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>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user