保誠-保戶業務員媒合平台
Tomas
2021-12-15 6455ef0d19b4c18dddd99e585e44ac9774d8788e
update: 補上遺漏的檔案 my-consultant.service
修改1個檔案
新增1個檔案
24 ■■■■■ 已變更過的檔案
PAMapp/assets/ts/models/agent-info.model.ts 18 ●●●●● 修補檔 | 檢視 | 原始 | 究查 | 歷程
PAMapp/assets/ts/services/my-consultant.service.ts 6 ●●●●● 修補檔 | 檢視 | 原始 | 究查 | 歷程
PAMapp/assets/ts/models/agent-info.model.ts
¤ñ¹ï·sÀÉ®×
@@ -0,0 +1,18 @@
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;
}
PAMapp/assets/ts/services/my-consultant.service.ts
@@ -1,5 +1,6 @@
import { http } from "./httpClient";
import { AgentInfo } from '~/assets/ts/models/agent-info.model';
import { Consultant } from "../models/consultant.model";
class MyConsultantService {
@@ -18,6 +19,11 @@
    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();