From 6455ef0d19b4c18dddd99e585e44ac9774d8788e Mon Sep 17 00:00:00 2001
From: Tomas <tomasysh@gmail.com>
Date: 星期三, 15 十二月 2021 16:21:26 +0800
Subject: [PATCH] update: 補上遺漏的檔案 my-consultant.service

---
 PAMapp/assets/ts/models/agent-info.model.ts        |   18 ++++++++++++++++++
 PAMapp/assets/ts/services/my-consultant.service.ts |    6 ++++++
 2 files changed, 24 insertions(+), 0 deletions(-)

diff --git a/PAMapp/assets/ts/models/agent-info.model.ts b/PAMapp/assets/ts/models/agent-info.model.ts
new file mode 100644
index 0000000..891ba42
--- /dev/null
+++ b/PAMapp/assets/ts/models/agent-info.model.ts
@@ -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;
+}
diff --git a/PAMapp/assets/ts/services/my-consultant.service.ts b/PAMapp/assets/ts/services/my-consultant.service.ts
index 4f4c686..c27a41d 100644
--- a/PAMapp/assets/ts/services/my-consultant.service.ts
+++ b/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();

--
Gitblit v1.8.0