| | |
| | | import { http } from "./httpClient"; |
| | | |
| | | import { ClientInfo } from "../models/client.model"; |
| | | import { AppointmentDetail } from "../models/appointment.model"; |
| | | import { ClientInfo } from "~/shared/models/client.model"; |
| | | import { AppointmentDetail, EditAppointmentParams } from "~/shared/models/appointment.model"; |
| | | |
| | | class AppointmentService { |
| | | |
| | |
| | | return http.delete(`/appointment/${appointmentId}`); |
| | | } |
| | | |
| | | // 編輯預約 |
| | | editAppointment(editAppointmentParams: EditAppointmentParams) { |
| | | return http.put('/appointment', editAppointmentParams); |
| | | } |
| | | |
| | | } |
| | | |
| | | export default new AppointmentService(); |