import apis from '../utils/request'; import { replaceSpecialIcon } from '../utils/index' const { GET, POST, PUT, DELETE } = apis // 获取园区列表 export const getParkList = async function({ keyword = "" }) { return await GET(`/wx/getParkList?keyword=${keyword || ""}`); } // 获取未登录的园区列表 export const getLoginParkList = async function({ keyword }) { return await GET(`/wx/getLoginParkList?keyword=${replaceSpecialIcon(keyword)}`); } // 获取建筑列表 export const getParkBuildingList = async function(pid) { return await GET(`/vx/park/${pid}/building`); } // 获取指定园区指定月份核算的详细信息 export const getParkInfoByTime = async function(pid, period, method) { return await GET(`/park/getReportParkIndex/${pid}?period=${period}&method=${method}`); }