diff --git a/src/api/his.ts b/src/api/his.ts index ba4fe52..d365fde 100644 --- a/src/api/his.ts +++ b/src/api/his.ts @@ -26,6 +26,8 @@ import type { PhysicalExamAddItemListResponse, InputPhysicalExamDiningLog, PhysicalExamDiningLogResponse, + InputTijianDiningLog, + TijianDiningLogResponse, } from './types'; /** @@ -220,3 +222,15 @@ export const getPhysicalExamDiningList = ( ).then(res => res.data); }; +/** + * 体检用餐登记 + */ +export const registerPhysicalExamDining = ( + data: InputTijianDiningLog +): Promise => { + return request.post( + `${MEDICAL_EXAM_BASE_PATH}/dining-register`, + data + ).then(res => res.data); +}; + diff --git a/src/api/types.ts b/src/api/types.ts index cebe6e4..99eeb71 100644 --- a/src/api/types.ts +++ b/src/api/types.ts @@ -461,3 +461,27 @@ export interface OutputPhysicalExamDiningLog { */ export type PhysicalExamDiningLogResponse = CommonActionResult; +/** + * 体检用餐登记入参 + */ +export interface InputTijianDiningLog { + /** 体检ID */ + physical_exam_id: number; + /** 体检编号 */ + exam_no: string; + /** 客户姓名 */ + customer_name: string; +} + +/** + * 体检用餐登记出参 + */ +export interface OutputTijianDiningLog { + // 空对象,无属性 +} + +/** + * 体检用餐登记响应 + */ +export type TijianDiningLogResponse = CommonActionResult; +