保誠-保戶業務員媒合平台
Tomas
2021-12-14 497f54b264eba626b77e79fec2ca6947ccae19e4
PAMapp/assets/ts/api/appointment.ts
@@ -2,14 +2,6 @@
import { AppointmentLog } from '../models/appointment.model';
// 取得所有預約清單
export function getMyAppointmentList():Promise<ClientInfo[]> {
    const headers = {
        Authorization: 'Bearer ' + localStorage.getItem('id_token')
    }
    return http.get('/consultant/getMyAppointment', {headers}).then(res => res.data);
}
// 標記為已聯絡
export function markAsContact(appointmentId: number) {
    const headers = {
@@ -42,27 +34,4 @@
        Authorization: 'Bearer ' + localStorage.getItem('id_token')
    }
    return http.post('/appointment/recordRead/' + appointmentId, undefined, {headers})
}
export interface ClientInfo {
    id               : number,
    phone            : string,
    email            : string,
    contactType      : string,
    gender           : string,
    age              : string,
    job              : string,
    requirement      : string,
    communicateStatus: string,
    hopeContactTime  : string,
    otherRequirement : string,
    appointmentDate  : Date,
    agentNo          : string,
    customerId       : number,
    name             : string,
    consultantViewTime: Date,
    consultantReadTime: Date,
    contactTime      : Date,
    satisfactionScore: number
}