保誠-保戶業務員媒合平台
Mila
2021-12-06 f2fe7c2bacd26cde387d4d3a17ce6161dd189e26
PAMapp/assets/ts/api/appointment.ts
@@ -1,5 +1,6 @@
import { service } from '~/assets/ts/api/share';
import { AxiosResponse } from 'axios';
import { AppointmentLog } from '../models/appointment.model';
// 取得所有預約清單
export function getMyAppointmentList():Promise<ClientInfo[]> {
@@ -19,6 +20,14 @@
            .then(res => res.data)
}
export function getMyReviewLog(): Promise<AppointmentLog[]> {
    const headers = {
        Authorization: 'Bearer ' + localStorage.getItem('id_token')
    }
    return service.get('/satisfaction/getMySatisfaction', { headers }).then(res => res.data);
}
// 顧問登入顯示新預約單筆數後觸發
export function allAppointmentsView() {
    const headers = {