import request from '@/router/axios';
//所有统计、社区列表
export const getCommunityList = (codeOrgPosition) => {
  return request({
    url: '/api/cyzh-community/statistics/screen/estate/static',
    method: 'get',
    params: {
      codeOrgPosition:codeOrgPosition
    }
  })
}
//社区统计、小区列表
export const getCommunityDetail = (params) => {
  return request({
    url: '/api/cyzh-community/statistics/agency',
    method: 'get',
    params: {
      id:params
    }
  })
}
//小区统计
export const getResidentialDetail = (params) => {
  return request({
    url: '/api/cyzh-community/statistics/residential/index',
    method: 'get',
    params: {
      id:params
    }
  })
}
//小区车辆统计
export const getResidentialCar = (params) => {
  return request({
    url: '/api/cyzh-community/statistics/residential/car',
    method: 'get',
    params: {
      id:params
    }
  })
}
//小区设备统计
export const getResidentialDevices = (params) => {
  return request({
    url: '/api/cyzh-community/statistics/residential/device',
    method: 'get',
    params: {
      id:params
    }
  })
}
//社区设备列表
export const getSmartdeviceAll = (type,id,status) => {
  return request({
    url: '/api/smartapplication/smartdevice/getAll',
    method: 'get',
    params: {
      deviceTypes:type,
      residentialId:id,
      deviceStatus:status,
    }
  })
}
//社区地磁、人脸、视频云、车辆统计
export const getMultiCount = (codeOrgPosition) => {
  return request({
    url: '/api/cyzh-community/statistics/screen/MultiStatic/static',
    method: 'get',
    params: {
      codeOrgPosition
    }
  })
}
//社区设备列表、设备统计
export const getDeviceCount = (deviceType,codeOrgPosition) => {
  return request({
    url: '/api/cyzh-community/statistics/screen/smartDevice/static',
    method: 'get',
    params: {
      deviceType,
      codeOrgPosition
    }
  })
}
//社区设备列表、设备统计
export const getDeviceVideo = (id) => {
  return request({
    url: '/api/cyzh-smart-device/videoclouddevice/list',
    method: 'get',
    params: {
      residentialId:id
    }
  })
}

//园区当日体温统计
export const getTodayTemperature = (id) => {
  return request({
    url: '/api/cyzh-community/statistics/screen/park/todayTemperature',
    method: 'get',
    params: {
      residentialId:id
    }
  })
}

//园区车辆出入趋势
export const getCarTendency = (params) => {
  return request({
    url: '/api/cyzh-community/statistics/screen/park/carTendency',
    method: 'get',
    params: {
       ...params
    }
  })
}

//园区当日动态数据
export const getTodayData = (params) => {
  return request({
    url: '/api/cyzh-community/statistics/screen/park/todayData',
    method: 'get',
    params: {
      ...params
    }
  })
}
//园区电表
export const getElectricMeterStatic = (id) => {
  return request({
    url: '/api/cyzh-community/statistics/electricMeterStatic',
    method: 'get',
    params: {
      agencyId:id
    }
  })
}
//社区维度的设备告警
export const getSmartdevice = (params) => {
  return request({
    url: '/api/cyzh-smart-device/iotdevice/page',
    method: 'get',
    params: {
      ...params
    }
  })
}
//获取地区json
export const getAreaFullJson = (params) => {
  return request({
    url: '/api/blade-system-expand/sysarea/getFullJson',
    method: 'get',
    params: {
      ...params
    }
  })
}
