import request from './request'; import type { InputTodayExamStatisticsInfo, TodayExamStatisticsResponse, InputRevenueStatisticsInfo, RevenueStatisticsResponse, InputTodayExamProgress, TodayExamProgressResponse, } from './types'; /** * 自助机HIS接口 * 基础路径: /api/his-web/self-service-machine/ */ const HIS_BASE_PATH = '/api/his-web/self-service-machine'; /** * 体检中心HIS接口 * 基础路径: /api/his-web/medical-exam-center-app/ */ const MEDICAL_EXAM_BASE_PATH = '/api/his-web/medical-exam-center-app'; /** * 今日体检统计信息 * @param data 请求参数(空对象) * @returns 今日体检统计信息 */ export const getTodayExamStatistics = ( data: InputTodayExamStatisticsInfo = {} ): Promise => { return request.post( `${MEDICAL_EXAM_BASE_PATH}/today-exam-statistics`, data ).then(res => res.data); }; /** * 营收数据统计 * @param data 请求参数(空对象) * @returns 营收数据统计信息 */ export const getRevenueStatistics = ( data: InputRevenueStatisticsInfo = {} ): Promise => { return request.post( `${MEDICAL_EXAM_BASE_PATH}/revenue-statistics`, data ).then(res => res.data); }; /** * 今日体检进度信息 * @param data 请求参数(空对象) * @returns 今日体检进度信息 */ export const getTodayExamProgress = ( data: InputTodayExamProgress = {} ): Promise => { return request.post( `${MEDICAL_EXAM_BASE_PATH}/today-exam-progress`, data ).then(res => res.data); };