From 18098111cc905e88524e7d9ce788b742637e0824 Mon Sep 17 00:00:00 2001 From: Mila <Mila@pollex.com.tw> Date: 星期二, 14 十二月 2021 16:02:04 +0800 Subject: [PATCH] refactor: 快速篩選 1. 整理 methods 順序 2. 整理 interface、const --- 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