完善身份证签到
This commit is contained in:
@@ -110,9 +110,17 @@ export const getCustomerDetail = (
|
||||
export const signInMedicalExamCenter = (
|
||||
data: InputMedicalExamCenterSignIn
|
||||
): Promise<PhysicalExamSignInResponse> => {
|
||||
const formData = new FormData();
|
||||
formData.append('id_no_pic', data.id_no_pic);
|
||||
|
||||
return request.post<PhysicalExamSignInResponse>(
|
||||
`${MEDICAL_EXAM_BASE_PATH}/sign-in`,
|
||||
data
|
||||
formData,
|
||||
{
|
||||
headers: {
|
||||
'Content-Type': 'multipart/form-data',
|
||||
},
|
||||
}
|
||||
).then(res => res.data);
|
||||
};
|
||||
|
||||
|
||||
@@ -255,8 +255,8 @@ export type CustomerDetailResponse = CommonActionResult<OutputCustomerDetail>;
|
||||
* 体检中心签到入参
|
||||
*/
|
||||
export interface InputMedicalExamCenterSignIn {
|
||||
/** 身份证号 */
|
||||
id_no: string;
|
||||
/** 身份证件照片(格式:jpg) */
|
||||
id_no_pic: File | Blob;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user