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 statsAlarmRetentionQuery = (
  params: TYPE.StatsAlarmRetentionQueryParams
): Promise<ResponseData<TYPE.StatsAlarmRetentionQueryData>> => {
  return request.post('/stats/alarmRetentionQuery', params)
}

// 一般滞留统计
export const statsGeneralRetentionQuery = (
  params: TYPE.StatsGeneralRetentionQueryParams
): Promise<ResponseData<TYPE.StatsGeneralRetentionQueryData>> => {
  return request.post('/stats/generalRetentionQuery', params)
}
