保誠-保戶業務員媒合平台
Tomas
2021-12-21 1d787d91e9ef23794a6ec648123bb8bfeaa00d44
PAMapp/assets/ts/api/consultant.ts
@@ -1,5 +1,4 @@
import { AxiosResponse } from 'axios';
import { AppointmentDetail } from '../models/AppointmentDetail';
import { ConsultantLoginInfo } from '../models/ConsultantLoginInfo';
import _ from 'lodash';
import { UserSetting } from '../models/account.model';
@@ -53,14 +52,6 @@
    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 = {
@@ -87,12 +78,12 @@
}
// 取消預約
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) {