From c75b2fc79f5aa811ba3f5d028633f3765a017bbb Mon Sep 17 00:00:00 2001
From: Mila <Mila@pollex.com.tw>
Date: 星期二, 30 十一月 2021 19:30:07 +0800
Subject: [PATCH] Merge branch 'master' of https://192.168.0.10:8443/r/pcalife/PAM

---
 PAMapp/assets/ts/api/appointment.ts |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/PAMapp/assets/ts/api/appointment.ts b/PAMapp/assets/ts/api/appointment.ts
index bbb8d6b..f574ac9 100644
--- a/PAMapp/assets/ts/api/appointment.ts
+++ b/PAMapp/assets/ts/api/appointment.ts
@@ -2,11 +2,11 @@
 import { AxiosResponse } from 'axios';
 
 // ���������
-export function getMyAppointmentList():Promise<AxiosResponse<ClientInfo>> {
+export function getMyAppointmentList():Promise<ClientInfo[]> {
     const headers = {
         Authorization: 'Bearer ' + localStorage.getItem('id_token')
     }
-    return service.get('/consultant/getMyAppointment', {headers});
+    return service.get('/consultant/getMyAppointment', {headers}).then(res => res.data);
 }
 
 // 璅�撌脰蝯�
@@ -14,7 +14,9 @@
     const headers = {
         Authorization: 'Bearer ' + localStorage.getItem('id_token')
     }
+    // TODO: 頝�垢蝣箄���ㄐ��� API 銝�府���� void, ���府���敺���� - Ben 2021/11/16
     return service.post('/appointment/markAsContacted/'+appointmentId, undefined, {headers})
+            .then(res => res.data)
 }
 
 

--
Gitblit v1.8.0