保誠-保戶業務員媒合平台
wayne
2022-02-17 34b08e1c461f5e08675fcff95525956d7c4bef11
PAMapp/shared/services/reviews.service.ts
@@ -1,17 +1,17 @@
import { http } from "./httpClient";
import { NotificationList, UserReviewsConsultantsParams } from "../models/reviews.model";
import { NotificationList, UserReviewPlatformRes, UserReviewParams } from "../models/reviews.model";
import { AppointmentLog } from "../models/appointment.model";
class ReviewsService {
  //客戶進行滿意度評分(單筆)
  userReviewsConsultants(data: UserReviewsConsultantsParams) {
  userReviewsConsultants(data: UserReviewParams) {
    return http.post('/satisfaction/score', data);
  }
  // 客戶進行滿意度(多筆)
  allUserReviewsConsultants(data: UserReviewsConsultantsParams[]) {
  allUserReviewsConsultants(data: UserReviewParams[]) {
    return http.post('/satisfaction/score/all', data);
  }
@@ -35,6 +35,11 @@
  readAllMyNotification() {
    return http.post('/personal_notification/readAllMyNotification')
  }
  // 客戶填寫平台滿意度
  reviewPlatform(params: UserReviewParams): Promise<UserReviewPlatformRes> {
    return http.post('/satisfaction/score', params);
  }
}
export default new ReviewsService();