添加接口:今日体检进度信息

This commit is contained in:
xianyi
2025-12-10 15:28:45 +08:00
parent 9c8b679689
commit f4d5c085ee
4 changed files with 186 additions and 121 deletions

View File

@@ -4,6 +4,8 @@ import type {
TodayExamStatisticsResponse,
InputRevenueStatisticsInfo,
RevenueStatisticsResponse,
InputTodayExamProgress,
TodayExamProgressResponse,
} from './types';
/**
@@ -46,3 +48,17 @@ export const getRevenueStatistics = (
).then(res => res.data);
};
/**
* 今日体检进度信息
* @param data 请求参数(空对象)
* @returns 今日体检进度信息
*/
export const getTodayExamProgress = (
data: InputTodayExamProgress = {}
): Promise<TodayExamProgressResponse> => {
return request.post<TodayExamProgressResponse>(
`${MEDICAL_EXAM_BASE_PATH}/today-exam-progress`,
data
).then(res => res.data);
};

View File

@@ -55,6 +55,32 @@ export interface OutputTodayExamStatisticsInfo {
*/
export type TodayExamStatisticsResponse = CommonActionResult<OutputTodayExamStatisticsInfo>;
/**
* 今日体检进度入参
*/
export interface InputTodayExamProgress {
// 空对象,无需参数
}
/**
* 今日体检进度出参
*/
export interface OutputTodayExamProgress {
/** 今日预约人数 */
today_appointment_count?: number | null;
/** 今日已签到人数 */
today_signin_count?: number | null;
/** 今日体检中人数 */
today_in_exam_count?: number | null;
/** 今日用餐人数 */
today_meal_count?: number | null;
}
/**
* 今日体检进度接口返回
*/
export type TodayExamProgressResponse = CommonActionResult<OutputTodayExamProgress>;
/**
* 营收数据统计入参
*/