import { request } from '../axios.config' ; import { User , Resume } from '@/client/types/user.interface' ; export const visitor = { register ( payload ) { return request . post ( '/user/visitor/register' , payload ) ; } , login ( phone , password ) { return request . post ( '/user/visitor/login' , { phone , password , } ) ; } , getBaseUser ( params ) { return request . get ( '/user/visitor/base_info' , { params , } ) ; } , getResume ( userId ) { return request . get ( '/user/visitor/resume' , { params : { user_id : userId , } , } ) ; } , } ;