From 4759d8e45e39b3faafe2ab16774f3d2369d8cb79 Mon Sep 17 00:00:00 2001 From: Tomas <tomasysh@gmail.com> Date: 星期四, 20 一月 2022 15:34:05 +0800 Subject: [PATCH] update: 滿意度 - 因應後端調整 api 更新相關前端程式碼 --- PAMapp/shared/services/reviews.service.ts | 8 +++++++- PAMapp/shared/models/appointment.model.ts | 15 ++++++++------- 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/PAMapp/shared/models/appointment.model.ts b/PAMapp/shared/models/appointment.model.ts index 300c61c..3488334 100644 --- a/PAMapp/shared/models/appointment.model.ts +++ b/PAMapp/shared/models/appointment.model.ts @@ -1,15 +1,16 @@ import { ContactStatus } from "./enum/contact-status"; export interface AppointmentLog { - id : number; - createdDate : string; - lastModifiedDate: string; - customerId : number; - agentNo : string; - status : 'UNFILLED' | 'FILLED'; - score : number; agentName : string; + agentNo : string; + appointmentId : number; + createdDate : string; + customerId : number; customerName : string; + id : number; + lastModifiedDate: string; + score : number; + status : 'UNFILLED' | 'FILLED'; } export interface Appointment { diff --git a/PAMapp/shared/services/reviews.service.ts b/PAMapp/shared/services/reviews.service.ts index 0580c8b..eea9380 100644 --- a/PAMapp/shared/services/reviews.service.ts +++ b/PAMapp/shared/services/reviews.service.ts @@ -7,12 +7,18 @@ //摰X�脰�遛��漲閰�� userReviewsConsultants(data: UserReviewsConsultantsParams) { - return http.post('/satisfaction/create', data ); + return http.post('/satisfaction/score', data ); } + //������������ async getMyReviewLog(): Promise<AppointmentLog[]> { return http.get('/satisfaction/getMySatisfaction').then(res => res.data); } + + // 憿批�蜓���遛��漲� + sendSatisfactionToClient(appointmentId: number): void { + http.post('/consultant/sendSatisfactionToClient/').then((res) => res); + } } export default new ReviewsService(); -- Gitblit v1.8.0