From ef1925b33ccd46ca27446e7fd088fe300c0eb856 Mon Sep 17 00:00:00 2001
From: Mila <Mila@pollex.com.tw>
Date: 星期三, 19 一月 2022 11:41:01 +0800
Subject: [PATCH] update [顧問預約流程] 系統通知紀錄串接API資料

---
 PAMapp/shared/models/appointment.model.ts |   73 ++++++++++++++++++++++++------------
 1 files changed, 48 insertions(+), 25 deletions(-)

diff --git a/PAMapp/shared/models/appointment.model.ts b/PAMapp/shared/models/appointment.model.ts
index 8919dc9..57c52ee 100644
--- a/PAMapp/shared/models/appointment.model.ts
+++ b/PAMapp/shared/models/appointment.model.ts
@@ -1,3 +1,5 @@
+import { ContactStatus } from "./enum/contact-status";
+
 export interface AppointmentLog {
     id              : number;
     createdDate     : string;
@@ -32,6 +34,7 @@
   phone              : string;
   requirement        : string;
   satisfactionScore  : number;
+  appointmentNoticeLogs: NoticeLogs[];
 };
 
 export interface AppointmentMemoInfo {
@@ -49,37 +52,21 @@
   lastModifiedBy  : string;
   lastModifiedDate: string;
 }
+
+export interface NoticeLogs {
+  id: number,
+  phone: string,
+  email: string,
+  appointmentId: number,
+  content: string,
+  createdDate: string
+}
 export interface AppointmentWithConsultantInfo extends Appointment {
   consultantAvatar    : string;
   consultantExpertList: string[];
   consultantName      : string;
   contactStatus       : string;
   updateTime          : string;
-}
-
-export interface AppointmentDetail {
-  age                 : string;
-  agentNo             : string;
-  appointmentDate     : string;
-  appointmentMemoList?: string[];
-  communicateStatus   : string;
-  consultantReadTime  : string;
-  consultantViewTime  : string;
-  contactTime         : string;
-  contactType         : string;
-  customerId          : number;
-  email               : string;
-  gender              : string;
-  hopeContactTime     : string;
-  id                  : number;
-  interviewRecordDTOs : string[];
-  job                 : string;
-  lastModifiedDate    : string;
-  name                : string;
-  otherRequirement    : string;
-  phone               : string;
-  requirement         : string;
-  satisfactionScore?  : number;
 }
 export interface AppointmentParams {
   age            : string;
@@ -130,3 +117,39 @@
   content: string;
   id     : number;
 }
+
+export interface ToDoneAppointment {
+    appointmentId         : number;
+    contactStatus         : ContactStatus;
+    planCode              : string;
+    policyEntryDate       : string;
+    policyholderIdentityId: string;
+    remark?               : string;
+}
+
+export interface ToCloseAppointment {
+  appointmentId    : number;
+  closedOtherReason: string;
+  closedReason     : string;
+  contactStatus    : ContactStatus;
+  remark?          : string;
+}
+
+export interface ToInformAppointment {
+  appointmentId: number;
+  email        : string;
+  interviewDate: string;
+  message      : string;
+  phone        : string;
+}
+
+export interface InterviewRecordInfo {
+  content: string;
+  interviewDate: string;
+  appointmentId: number;
+}
+
+export interface UpdateInterviewRecordInfo {
+  /** interviewRecord id */
+  id: number;
+}
\ No newline at end of file

--
Gitblit v1.8.0