保誠-保戶業務員媒合平台
HelenHuang
2021-12-08 ea8c5302eb57600b4380e20600d61b1d115a6b53
PAMapp/assets/ts/api/consultant.ts
@@ -133,6 +133,22 @@
    return service.post('/satisfaction/create', data ,{headers});
}
// 取消預約
export function cancelAppointment(appointment: number) {
    const headers = {
        Authorization: 'Bearer ' + localStorage.getItem('id_token')
    }
    return service.delete('/appointment/'+appointment ,{headers});
}
// 編輯預約
export function editAppointment(editAppointmentParams: editAppointmentParams) {
    const headers = {
        Authorization: 'Bearer ' + localStorage.getItem('id_token')
    }
    return service.put('/appointment', editAppointmentParams, {headers});
}
export interface FastQueryParams {
    gender             : string,
    communicationStyles: string[],
@@ -231,3 +247,16 @@
    appointmentId:number,
    score:number,
}
export interface editAppointmentParams {
    id: number,
    phone: string,
    email: string,
    contactType: string,
    gender: string,
    age: string,
    job: string,
    requirement: string,
    hopeContactTime: string,
    otherRequirement: null
}