From f41af9be6cf3a4edb8b222f6e351bfaa03362085 Mon Sep 17 00:00:00 2001 From: Mila <Mila@pollex.com.tw> Date: 星期一, 17 一月 2022 13:56:18 +0800 Subject: [PATCH] update: 新增約訪記錄 api 串接 --- PAMapp/shared/services/appointment.service.ts | 17 ++++++++++++++++- 1 files changed, 16 insertions(+), 1 deletions(-) diff --git a/PAMapp/shared/services/appointment.service.ts b/PAMapp/shared/services/appointment.service.ts index 08ce8fc..083712a 100644 --- a/PAMapp/shared/services/appointment.service.ts +++ b/PAMapp/shared/services/appointment.service.ts @@ -1,6 +1,6 @@ import { http } from "./httpClient"; -import { Appointment, AppointmentDetail, AppointmentMemoInfo, createdMemoInfo, EditAppointmentParams, ToCloseAppointment, ToDoneAppointment, ToInformAppointment, updatedMemoInfo } from "~/shared/models/appointment.model"; +import { Appointment, AppointmentDetail, AppointmentMemoInfo, createdMemoInfo, EditAppointmentParams, InterviewRecordInfo, ToCloseAppointment, ToDoneAppointment, ToInformAppointment, updatedMemoInfo, UpdateInterviewRecordInfo } from "~/shared/models/appointment.model"; class AppointmentService { @@ -64,6 +64,21 @@ async informAppointment(appointmentInformation: ToInformAppointment) { return http.post(`/notice/send`, appointmentInformation).then((res) => res.data); } + + // �憓�赤閮�� + async createInterviewRecord(interviewRecordInfo: InterviewRecordInfo) { + return http.post('/interview_record/create', interviewRecordInfo).then(res => res.data); + } + + // 靽格蝝赤閮�� + async updateInterviewRecord(updateInterviewRecordInfo: UpdateInterviewRecordInfo) { + return http.post('/interview_record/update', updateInterviewRecordInfo) + } + + // ��蝝赤閮�� + async deleteInterviewRecord(interviewRecordId) { + return http.delete(`/interview_record/'${interviewRecordId}`); + } } export default new AppointmentService(); -- Gitblit v1.8.0