import api from '@/core/api/axios';

const BASE = '/api/wtm/reports';

export const reportService = {
  getProjectHours: (params: Record<string, unknown>) => api.get(`${BASE}/project-hours`, { params }),
  exportProjectHours: (params: Record<string, unknown>) => api.get(`${BASE}/project-hours/export`, { params, responseType: 'blob' }),
  getWbsHours: (params: Record<string, unknown>) => api.get(`${BASE}/wbs-hours`, { params }),
  exportWbsHours: (params: Record<string, unknown>) => api.get(`${BASE}/wbs-hours/export`, { params, responseType: 'blob' }),
  getPhaseRatio: (params: Record<string, unknown>) => api.get(`${BASE}/phase-ratio`, { params }),
  getNpRatio: (params: Record<string, unknown>) => api.get(`${BASE}/np-ratio`, { params }),
};
