| | |
| | | import { AxiosResponse } from 'axios'; |
| | | import { AppointmentDetail } from '../models/AppointmentDetail'; |
| | | import { ConsultantLoginInfo } from '../models/ConsultantLoginInfo'; |
| | | import _ from 'lodash'; |
| | | import { UserSetting } from '../models/account.model'; |
| | |
| | | return http.delete('/consultant/favorite/'+agentId, {headers}) |
| | | } |
| | | |
| | | // 取得預約單細節 |
| | | export function getAppointmentDetail(apointmentId: number):Promise<AxiosResponse<AppointmentDetail>> { |
| | | const headers = { |
| | | Authorization: 'Bearer ' + localStorage.getItem('id_token') |
| | | } |
| | | return http.get('/appointment/getDetail/'+apointmentId, {headers}) |
| | | } |
| | | |
| | | //取得使用者帳號資訊 |
| | | export function getUserAccountSetting() : Promise<UserSetting> { |
| | | const headers = { |
| | |
| | | } |
| | | |
| | | // 取消預約 |
| | | export function cancelAppointment(appointment: number) { |
| | | const headers = { |
| | | Authorization: 'Bearer ' + localStorage.getItem('id_token') |
| | | } |
| | | return http.delete('/appointment/'+appointment ,{headers}); |
| | | } |
| | | // export function cancelAppointment(appointment: number) { |
| | | // const headers = { |
| | | // Authorization: 'Bearer ' + localStorage.getItem('id_token') |
| | | // } |
| | | // return http.delete('/appointment/'+appointment ,{headers}); |
| | | // } |
| | | |
| | | // 編輯預約 |
| | | export function editAppointment(editAppointmentParams: editAppointmentParams) { |