import services from '../services' ; import { Resume } from '../types/user.interface' ; export type ResumeState = Resume | null ; export const resume = { state : null as ResumeState , reducers : { } , effects : { async getResume ( state , payload ) { const data = await services . user . visitor . getResume ( payload . user_id ) ; return data ; } , async getAdminResume ( state ) { const data = await services . user . user . getResume ( ) ; return data ; } , async updateResume ( state , payload ) { await services . user . user . updateResume ( payload ) ; const data = await services . user . user . getResume ( ) ; return data ; } , } , } ;