添加体检用餐登记接口
This commit is contained in:
@@ -26,6 +26,8 @@ import type {
|
|||||||
PhysicalExamAddItemListResponse,
|
PhysicalExamAddItemListResponse,
|
||||||
InputPhysicalExamDiningLog,
|
InputPhysicalExamDiningLog,
|
||||||
PhysicalExamDiningLogResponse,
|
PhysicalExamDiningLogResponse,
|
||||||
|
InputTijianDiningLog,
|
||||||
|
TijianDiningLogResponse,
|
||||||
} from './types';
|
} from './types';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -220,3 +222,15 @@ export const getPhysicalExamDiningList = (
|
|||||||
).then(res => res.data);
|
).then(res => res.data);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 体检用餐登记
|
||||||
|
*/
|
||||||
|
export const registerPhysicalExamDining = (
|
||||||
|
data: InputTijianDiningLog
|
||||||
|
): Promise<TijianDiningLogResponse> => {
|
||||||
|
return request.post<TijianDiningLogResponse>(
|
||||||
|
`${MEDICAL_EXAM_BASE_PATH}/dining-register`,
|
||||||
|
data
|
||||||
|
).then(res => res.data);
|
||||||
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -461,3 +461,27 @@ export interface OutputPhysicalExamDiningLog {
|
|||||||
*/
|
*/
|
||||||
export type PhysicalExamDiningLogResponse = CommonActionResult<OutputPhysicalExamDiningLog>;
|
export type PhysicalExamDiningLogResponse = CommonActionResult<OutputPhysicalExamDiningLog>;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 体检用餐登记入参
|
||||||
|
*/
|
||||||
|
export interface InputTijianDiningLog {
|
||||||
|
/** 体检ID */
|
||||||
|
physical_exam_id: number;
|
||||||
|
/** 体检编号 */
|
||||||
|
exam_no: string;
|
||||||
|
/** 客户姓名 */
|
||||||
|
customer_name: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 体检用餐登记出参
|
||||||
|
*/
|
||||||
|
export interface OutputTijianDiningLog {
|
||||||
|
// 空对象,无属性
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 体检用餐登记响应
|
||||||
|
*/
|
||||||
|
export type TijianDiningLogResponse = CommonActionResult<OutputTijianDiningLog>;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user