From db5614ba62f5855e5d7f7ed980c8630afc779343 Mon Sep 17 00:00:00 2001
From: Mila <Mila@pollex.com.tw>
Date: 星期一, 06 十二月 2021 10:59:04 +0800
Subject: [PATCH] update: TODO#131490 [預約清單]: 1. 顧問登入後通知新加入預約單有幾筆, 2. 增加新預約單與未讀樣式

---
 PAMapp/assets/ts/api/appointment.ts |   22 +++++++++++++++++++++-
 1 files changed, 21 insertions(+), 1 deletions(-)

diff --git a/PAMapp/assets/ts/api/appointment.ts b/PAMapp/assets/ts/api/appointment.ts
index f574ac9..aa419c6 100644
--- a/PAMapp/assets/ts/api/appointment.ts
+++ b/PAMapp/assets/ts/api/appointment.ts
@@ -19,6 +19,22 @@
             .then(res => res.data)
 }
 
+// 憿批��憿舐內����蝑敺孛�
+export function allAppointmentsView() {
+    const headers = {
+        Authorization: 'Bearer ' + localStorage.getItem('id_token')
+    }
+    return service.post('/consultant/record/allAppointmentsView', undefined, {headers})
+}
+
+// 霈�������孛�
+export function recordRead(appointmentId: number) {
+    const headers = {
+        Authorization: 'Bearer ' + localStorage.getItem('id_token')
+    }
+    return service.post('/appointment/recordRead/' + appointmentId, undefined, {headers})
+}
+
 
 export interface ClientInfo {
     id: number,
@@ -35,5 +51,9 @@
     appointmentDate: Date,
     agentNo: string,
     customerId: number,
-    name: string
+    name: string,
+    consultantViewTime: Date,
+    consultantReadTime: Date,
+    contactTime: Date,
+    satisfactionScore: number
 }
\ No newline at end of file

--
Gitblit v1.8.0