保誠-保戶業務員媒合平台
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
}