| | |
| | | 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) { |
| | |
| | | |
| | | // 快速篩選 |
| | | export function fastQuery(data: FastQueryParams) { |
| | | return http.post('/consultant/fastQuery', data) |
| | | return http.post<Consultant[]>('/consultant/fastQuery', data).then(res => res.data); |
| | | } |
| | | |
| | | // 嚴選配對 |
| | |
| | | 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 { |