From a2feefbe2565234b5755573326bdb7c0781b2562 Mon Sep 17 00:00:00 2001 From: Mila <Mila@pollex.com.tw> Date: 星期二, 18 一月 2022 15:34:56 +0800 Subject: [PATCH] update: 刪除重複的 interface: appointmentDeatil => appointment --- PAMapp/shared/services/appointment.service.ts | 24 ++++++++++++++++++++++-- 1 files changed, 22 insertions(+), 2 deletions(-) diff --git a/PAMapp/shared/services/appointment.service.ts b/PAMapp/shared/services/appointment.service.ts index a928a4f..dcba492 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, updatedMemoInfo } from "~/shared/models/appointment.model"; +import { Appointment, AppointmentMemoInfo, createdMemoInfo, EditAppointmentParams, InterviewRecordInfo, ToCloseAppointment, ToDoneAppointment, ToInformAppointment, updatedMemoInfo, UpdateInterviewRecordInfo } from "~/shared/models/appointment.model"; class AppointmentService { @@ -26,7 +26,7 @@ } // �����蝝啁� - async getAppointmentDetail(appointmentId: number):Promise<AppointmentDetail> { + async getAppointmentDetail(appointmentId: number):Promise<Appointment> { return http.get(`/appointment/getDetail/${appointmentId}`).then((res) => res.data); } @@ -59,6 +59,26 @@ async closeAppointment(appointmentInfo: ToDoneAppointment | ToCloseAppointment) { return http.post(`/appointment/close`, appointmentInfo).then((res) => res.data); } + + // 蝝赤� API + 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.9.3