From b448388d84a7f84e03bb54e5c25d281132276fe7 Mon Sep 17 00:00:00 2001
From: HelenHuang <LinHuang@pollex.com.tw>
Date: 星期二, 14 十二月 2021 16:24:30 +0800
Subject: [PATCH] Merge branch 'master' of https://192.168.0.10:8443/r/pcalife/PAM

---
 PAMapp/assets/ts/api/consultant.ts |   10 ++--------
 1 files changed, 2 insertions(+), 8 deletions(-)

diff --git a/PAMapp/assets/ts/api/consultant.ts b/PAMapp/assets/ts/api/consultant.ts
index 2cf639b..d3462a4 100644
--- a/PAMapp/assets/ts/api/consultant.ts
+++ b/PAMapp/assets/ts/api/consultant.ts
@@ -5,6 +5,7 @@
 import { UserSetting } from '../models/account.model';
 import { Consultant } from '~/assets/ts/models/consultant.model';
 import { http } from '../services/httpClient';
+import { FastQueryParams } from '../models/quickFilter.model';
 
 // 憿批恥��(TODO: OTP隤����� ���蝙�)
 export function login(user: any) {
@@ -34,7 +35,7 @@
 
 // 敹恍�祟�
 export function fastQuery(data: FastQueryParams) {
-    return http.post('/consultant/fastQuery', data)
+    return http.post<Consultant[]>('/consultant/fastQuery', data).then(res => res.data);
 }
 
 // ������
@@ -138,13 +139,6 @@
         Authorization: 'Bearer ' + localStorage.getItem('id_token')
     }
     return http.put('/appointment', editAppointmentParams, {headers});
-}
-
-export interface FastQueryParams {
-    gender             : string,
-    communicationStyles: string[],
-    avgScore           : number,
-    status             : string
 }
 
 export interface AppointmentRequests {

--
Gitblit v1.8.0