| | |
| | | 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[], |
| | |
| | | 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 |
| | | } |