update: 補上遺漏的檔案 my-consultant.service
¤ñ¹ï·sÀÉ®× |
| | |
| | | export interface AgentInfo { |
| | | name : string; |
| | | agentNo : string; |
| | | role : string; |
| | | img : string; |
| | | avgScore : number; |
| | | title : string; |
| | | phoneNumber : string; |
| | | serveArea : string; |
| | | companyAddress : string; |
| | | seniority : string; |
| | | suitability : number; |
| | | evaluation : number; |
| | | expertise : string[]; |
| | | concept : string; |
| | | experiences : string[]; |
| | | awards : string; |
| | | } |
| | |
| | | import { http } from "./httpClient"; |
| | | |
| | | import { AgentInfo } from '~/assets/ts/models/agent-info.model'; |
| | | import { Consultant } from "../models/consultant.model"; |
| | | |
| | | class MyConsultantService { |
| | |
| | | http.post('/consultant/favorite/view'); |
| | | } |
| | | |
| | | //é¡§å詳細è³è¨ |
| | | async getConsultantDetail(agentNo:string): Promise<AgentInfo> { |
| | | return http.get('/consultant/detail', {params:{agentNo:agentNo}}).then((res) => res.data); |
| | | } |
| | | |
| | | } |
| | | |
| | | export default new MyConsultantService(); |