| | |
| | | |
| | | // 預約前詢問 |
| | | export function appointmentDemand(data: AppointmentParams) { |
| | | return service.post('/appointment/customer/create', data) |
| | | const headers = { |
| | | Authorization: 'Bearer ' + localStorage.getItem('id_token') |
| | | } |
| | | return service.post('/appointment/customer/create', data ,{headers}) |
| | | } |
| | | |
| | | //顧問詳細資訊 |
| | |
| | | } |
| | | return service.get('/consultant/getMyAppointment', {headers}); |
| | | } |
| | | |
| | | // 忘記密碼網址 |
| | | export function getForgotPasswordLink():Promise<string>{ |
| | | return new Promise((resolve, reject)=>{ |
| | | resolve('https://www.google.com/'); |
| | | }) |
| | | } |
| | | |
| | | // 取得驗證碼圖片 |
| | | export function getVerificationCodeImg():Promise<string>{ |
| | | return new Promise((resolve, reject)=>{ |
| | | resolve(''); |
| | | }) |
| | | } |
| | | |
| | | // 顧問登入 |
| | | export function logInToConsultant(consultantDto:ConsultantLoginInfo):Promise<boolean>{ |
| | | console.log('consultantDto',consultantDto); |
| | | return new Promise((resolve, reject)=>{ |
| | | setTimeout(()=>{ |
| | | resolve(true); |
| | | },1000) |
| | | }) |
| | | } |
| | | export interface ConsultantLoginInfo{ |
| | | account:string, |
| | | password:string, |
| | | verificationCode:string, |
| | | } |
| | | export interface Consultants { |
| | | agentNo: string, |
| | | name: string, |