| | |
| | | import { service } from '~/assets/ts/api/share'; |
| | | import { AxiosResponse } from 'axios'; |
| | | import { AppointmentLog } from '../models/appointment.model'; |
| | | |
| | | // 取得所有預約清單 |
| | | export function getMyAppointmentList():Promise<ClientInfo[]> { |
| | |
| | | .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 interface ClientInfo { |
| | | id: number, |