| | |
| | | const headers = { |
| | | Authorization: 'Bearer ' + localStorage.getItem('id_token') |
| | | } |
| | | <<<<<<< HEAD |
| | | return service.post('/appointment/customer/create', data, {headers}) |
| | | ======= |
| | | return service.post('/appointment/customer/create', data ,{headers}) |
| | | >>>>>>> b7de9faedf2a3e21c77c4ab3fc645ef01ac549cf |
| | | } |
| | | |
| | | //顧問詳細資訊 |
| | |
| | | return service.get('/consultant/detail', {params:{agentNo:agentNo}}) |
| | | } |
| | | |
| | | // 移除顧問 |
| | | export function deleteConsultant(agentId: string) { |
| | | const headers = { |
| | | Authorization: 'Bearer ' + localStorage.getItem('id_token') |
| | | } |
| | | return service.delete('/consultant/favorite/'+agentId, {headers}) |
| | | } |
| | | export interface Consultants { |
| | | agentNo: string, |
| | | name: string, |