| | |
| | | import { service } from '~/assets/ts/api/share'; |
| | | import { AxiosResponse } from 'axios'; |
| | | import { AppointmentDetail } from '../models/AppointmentDetail'; |
| | | import { ConsultantLoginInfo } from '../models/ConsultantLoginInfo'; |
| | | |
| | | // 顧客登入(TODO: OTP認證開發前 暫時使用) |
| | | export function login(user: any) { |
| | |
| | | } |
| | | |
| | | // 顧問登入 |
| | | export function logInToConsultant(consultantDto:ConsultantLoginInfo):Promise<boolean>{ |
| | | console.log('consultantDto',consultantDto); |
| | | return new Promise((resolve, reject)=>{ |
| | | setTimeout(()=>{ |
| | | resolve(true); |
| | | },1000) |
| | | }) |
| | | export function logInToConsultant(consultantDto:ConsultantLoginInfo):Promise<AxiosResponse<RequestOfLoginSuccess>>{ |
| | | return service.post('/eService/authenticate',consultantDto); |
| | | } |
| | | |
| | | // 取得預約單細節 |
| | |
| | | Authorization: 'Bearer ' + localStorage.getItem('id_token') |
| | | } |
| | | return service.get('/appointment/getDetail/'+apointmentId, {headers}) |
| | | } |
| | | export interface ConsultantLoginInfo{ |
| | | account:string, |
| | | password:string, |
| | | verificationCode:string, |
| | | } |
| | | export interface Consultants { |
| | | agentNo: string, |