import request from '@/request'
import type * as TYPE from './types'

// 跌倒统计
export const statsFallQuery = (
  params: TYPE.StatsFallQueryParams
): Promise<ResponseData<TYPE.StatsFallQueryData>> => {
  return request.post('/stats/fallQuery', params)
}

// 告警统计
export const statsAlarmQuery = (
  params: TYPE.AtatsAlarmQueryParams
): Promise<ResponseData<TYPE.StatsAlarmQueryData>> => {
  return request.post('/stats/alarmEventsQuery', params)
}
