保誠-保戶業務員媒合平台
Tomas
2022-02-08 8fa88b545738ee12dadf18431f78788d1e104fa7
PAMapp/shared/services/reviews.service.ts
@@ -1,6 +1,6 @@
import { http } from "./httpClient";
import { NotificationList, UserReviewsConsultantsParams } from "../models/reviews.model";
import { NotificationList, UserReviewPlatformParams, UserReviewPlatformRes, UserReviewsConsultantsParams } from "../models/reviews.model";
import { AppointmentLog } from "../models/appointment.model";
class ReviewsService {
@@ -30,6 +30,16 @@
  getMyPersonalNotification(): Promise<NotificationList[]> {
    return http.get('/personal_notification/getMyPersonalNotification').then(res => res.data);
  }
  // 目前登入者的所有小鈴鐺通知設定為已讀
  readAllMyNotification() {
    return http.post('/personal_notification/readAllMyNotification')
  }
  // 客戶填寫平台滿意度
  reviewPlatform(params: UserReviewPlatformParams): Promise<UserReviewPlatformRes> {
    return http.post('/satisfaction/system/score', params);
  }
}
export default new ReviewsService();