import request from '@/utils/request' // 创建能源统计主 export function createEnergyStatistics(data) { return request({ url: '/monitoring/energy-statistics/create', method: 'post', data: data }) } // 更新能源统计主 export function updateEnergyStatistics(data) { return request({ url: '/monitoring/energy-statistics/update', method: 'put', data: data }) } // 删除能源统计主 export function deleteEnergyStatistics(id) { return request({ url: '/monitoring/energy-statistics/delete?id=' + id, method: 'delete' }) } // 获得能源统计主 export function getEnergyStatistics(id) { return request({ url: '/monitoring/energy-statistics/get?id=' + id, method: 'get' }) } // 获得能源统计主分页 export function getEnergyStatisticsPage(data) { return request({ url: '/monitoring/energy-statistics/page', method: 'post', data: data }) } // 导出能源统计主 Excel export function exportEnergyStatisticsExcel(query) { return request({ url: '/monitoring/energy-statistics/export-excel', method: 'get', params: query, responseType: 'blob' }) } // 获取编码 export function getCode() { return request({ url: '/monitoring/energy-statistics/getCode', method: 'get' }) }