import axios from '@/libs/api.request'

/**
 * 数据简报
 * @param parmas
 * @returns {*|void|ClientRequest|ClientHttp2Stream|never|AxiosPromise<any>}
 */
export const dataPresentationStatistics = (parmas) => {
  return axios.request({
    url: 'api/v1/homeStatistics/dataPresentationStatistics',
    params: parmas,
    method: 'get',
  })
}

/**
 * 区域使用情况统计
 * @param parmas
 * @returns {*|void|ClientRequest|ClientHttp2Stream|never|AxiosPromise<any>}
 */
export const areaUseStateCount = (parmas) => {
  return axios.request({
    url: 'api/v1/homeStatistics/areaUseStateCount',
    params: parmas,
    method: 'get',
  })
}
