import { IntranetDashboardDto } from '@/proxy/intranet/models' import apiService, { Config } from './api.service' export class IntranetService { apiName = 'Default' getDashboard = (config?: Partial) => apiService.fetchData( { method: 'GET', url: '/api/app/intranet/intranet-dashboard', }, { apiName: this.apiName, ...config }, ) updateSurveyResponse = ( surveyId: string, answers: { questionId: string; questionType: string; value: string }[], config?: Partial, ) => apiService.fetchData( { method: 'POST', url: '/api/app/intranet/update-survey-response', data: { surveyId, answers }, }, { apiName: this.apiName, ...config }, ) } export const intranetService = new IntranetService()