| | |
| | | import { http } from "./httpClient"; |
| | | |
| | | import { Consultant } from "../models/consultant.model"; |
| | | import { Consultant } from "~/shared/models/consultant.model"; |
| | | import { FastQueryParams } from "~/shared/models/quick-filter.model"; |
| | | import { AgentOfStrictQuery, StrictQueryParams } from "~/shared/models/strict-query.model"; |
| | | import { AppointmentParams } from "~/shared/models/appointment.model"; |
| | | |
| | | class QueryConsultantService { |
| | | |
| | | // 推薦保險顧問 |
| | | async getRecommendConsultantList(): Promise<Consultant[]> { |
| | | return http.get<Consultant[]>('/consultant/recommend').then((res) => res.data); |
| | | } |
| | | // 推薦保險顧問 |
| | | async getRecommendConsultantList(): Promise<Consultant[]> { |
| | | return http.get<Consultant[]>('/consultant/recommend').then((res) => res.data); |
| | | } |
| | | |
| | | // 快速篩選 |
| | | async fastQuery(data: FastQueryParams): Promise<Consultant[]> { |
| | | return http.post<Consultant[]>('/consultant/fastQuery', data).then(res => res.data); |
| | | } |
| | | |
| | | // 嚴選配對 |
| | | async strictQuery(data:StrictQueryParams): Promise<AgentOfStrictQuery[]>{ |
| | | return http.post('/consultant/strictQuery', data).then((res) => res.data); |
| | | } |
| | | |
| | | // 加入顧問 |
| | | async addFavoriteConsultant(agentNoList: string[]) { |
| | | return http.post('/consultant/favorite', { agentNoList }); |
| | | } |
| | | |
| | | // 預約前詢問 |
| | | async appointmentDemand(data: AppointmentParams) { |
| | | return http.post('/appointment/customer/create', data); |
| | | } |
| | | |
| | | } |
| | | |