import request from '/@/utils/request';

/**
 * 查看水电明细
 * @param roomNo 宿舍号
 */
export const lookDetails = (roomNo: string) => {
  return request({
    url: '/stuwork/watermonthreport/lookDetails',
    method: 'get',
    params: { roomNo }
  });
};

/**
 * 水电统计
 * @param params 统计参数
 */
export const getStats = (params: any) => {
  return request({
    url: '/stuwork/watermonthreport/stats',
    method: 'get',
    params
  });
};

/**
 * 水电趋势分析
 * @param params 查询参数
 */
export const getTrend = (params: any) => {
  return request({
    url: '/stuwork/watermonthreport/trend',
    method: 'get',
    params
  });
};

/**
 * 按楼层统计水电
 * @param params 查询参数
 */
export const getFloorStats = (params: any) => {
  return request({
    url: '/stuwork/watermonthreport/floorStats',
    method: 'get',
    params
  });
};

