import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { LineLossQuery, LineLossResult } from './types';

export const getLineLoss = (params: LineLossQuery): AxiosPromise<LineLossResult> => {
  return request({
    url: '/electricityManagement/lineLoss',
    method: 'get',
    params
  });
};
