Newer
Older
CloudBrainNew / src / api / community.js
wangxitong on 29 Apr 2021 2 KB 0429 submit
import request from '@/utils/request'
import config from '@/utils/baseConfig'

// 社区接口
// 社区基础设施:park公园,administrative行政服务中心,cashBussiness金融邮电,
// hospital医疗机构,school,welfareHouse福利院,culture文化场所,entertainment娱乐场所
// bussiness 商业, parkLot停车场
export function fetchInfrastructure (type) {
  return request({
    // baseURL: config.baseUrl,
    url: '/cityManage/' + type,
    method: 'get'
  })
}
// 社区整体车辆、人员通行情况
export function fetchGoThrough (type) {
  return request({
    baseURL: config.baseUrl,
    url: '/goThrough/' + type,
    method: 'get'
  })
}
// 各社区车辆通行次数
export function fetchCarCount () {
  return request({
    baseURL: config.baseUrl,
    url: '/community/carCount',
    method: 'get'
  })
}
// 各社区人员通行次数
export function fetchPeopleCount () {
  return request({
    baseURL: config.baseUrl,
    url: '/community/peopleCount',
    method: 'get'
  })
}

// 投诉热词
export function fetchTroubleHot () {
  return request({
    baseURL: config.baseUrl,
    url: '/community/trouble/hot',
    method: 'get'
  })
}

export function fetchSocialLive (type) {
  return request({
    baseURL: config.baseUrl,
    url: '/socialLive/' + type,
    method: 'get'
  })
}
// 年龄统计
export function fetchAgeCount () {
  return request({
    baseURL: config.baseUrl,
    url: '/population/ageCount',
    method: 'get'
  })
}
// 民族统计
export function fetchNationCount () {
  return request({
    baseURL: config.baseUrl,
    url: '/population/nationCount',
    method: 'get'
  })
}
// 社区统计
export function fetchCommunityCount () {
  return request({
    baseURL: config.baseUrl,
    url: '/population/communityCount',
    method: 'get'
  })
}

// 性别统计
export function fetchSexCount () {
  return request({
    baseURL: config.baseUrl,
    url: '/population/sexCount',
    method: 'get'
  })
}

// 房屋统计
export function fetchHouseCountByUse () {
  return request({
    baseURL: config.baseUrl,
    url: '/house/countByUse',
    method: 'get'
  })
}

export function fetchHouse () {
  return request({
    baseURL: config.baseUrl,
    url: '/community/house',
    method: 'get'
  })
}

export function fetchHouseByCommunity () {
  return request({
    baseURL: config.baseUrl,
    url: '/community/houseByCommunity',
    method: 'get'
  })
}