This commit is contained in:
zk
2023-12-19 18:10:46 +08:00
parent 3e53c75a6f
commit 8dccce0208
16 changed files with 128 additions and 35 deletions
@@ -1,10 +1,30 @@
import { get } from '/@/api/request.ts';
import { get, post } from '/@/api/request.ts';
export enum Api {
footerStatistic = '/health-watch/watch/deptStatisticData/listByorgCode',
mapListApi = '/health-watch/watch/watchDevice/getMapList',
getUserListByDeptId = '/health-watch/watch/watchDevice/getUserListByDeptId',
queryAllStatistics = '/health-watch/watch/watchData/queryAllStatistics',
// 心率
queryHeartRateStatistics = '/health-watch/watch/watchData/queryHeartRateStatistics',
queryHeartRateStatisticsPage = '/health-watch/watch/watchData/queryHeartRateStatisticsPage',
// 血氧
queryBloodOxygenStatistics = '/health-watch/watch/watchData/queryBloodOxygenStatistics',
queryBloodOxygenStatisticsPage = '/health-watch/watch/watchData/queryBloodOxygenStatisticsPage',
// 压力
queryStressStatistics = '/health-watch/watch/watchData/queryStressStatistics',
queryStressStatisticsPage = '/health-watch/watch/watchData/queryStressStatisticsPage',
// 睡眠
querySleepStatistics = '/health-watch/watch/watchData/querySleepStatistics',
querySleepStatisticsPage = '/health-watch/watch/watchData/querySleepStatisticsPage',
// 体温
queryBodyTemperatureStat = '/health-watch/watch/watchData/queryBodyTemperatureStat',
queryBodyTemperatureStatPage = '/health-watch/watch/watchData/queryBodyTemperatureStatPage',
// 锻炼
queryExercisePage = '/health-watch/watch/watchData/queryExercisePage',
// 步数
queryStepStatistics = '/health-watch/watch/watchData/queryStepStatistics',
queryStepStatisticsPage = '/health-watch/watch/watchData/queryStepStatisticsPage',
// 获取是否有数据
userDataDayByYear = '/health-watch/watch/watchData/userDataDayByYear',
}
@@ -18,3 +38,21 @@ export const mapListApi = (params) => get(Api.mapListApi, params);
export const getUserListByDeptId = (params) => get(Api.getUserListByDeptId, params);
export const queryAllStatisticsApi = (params) => get(Api.queryAllStatistics, params);
export const userDataDayByYearApi = (params) => get(Api.userDataDayByYear, params);
// 血氧
export const queryBloodOxygenStatisticsApi = (params: any) => post(Api.queryBloodOxygenStatistics, params);
export const queryBloodOxygenStatisticsPageApi = (params: any) => post(Api.queryBloodOxygenStatisticsPage, params);
// 压力
export const queryStressStatisticsApi = (params: any) => post(Api.queryBloodOxygenStatisticsPage, params);
export const queryStressStatisticsPageApi = (params: any) => post(Api.queryStressStatisticsPage, params);
// 睡眠
export const querySleepStatisticsApi = (params: any) => post(Api.querySleepStatistics, params);
export const querySleepStatisticsPageApi = (params: any) => post(Api.querySleepStatisticsPage, params);
// 体温
export const queryBodyTemperatureStatApi = (params: any) => post(Api.queryBodyTemperatureStat, params);
export const queryBodyTemperatureStatPageApi = (params: any) => post(Api.queryBodyTemperatureStatPage, params);
// 锻炼
export const queryExercisePageApi = (params: any) => post(Api.queryExercisePage, params);
// 步数
export const queryStepStatisticsApi = (params: any) => post(Api.queryStepStatistics, params);
export const queryStepStatisticsPageApi = (params: any) => post(Api.queryStepStatisticsPage, params);