From 587d25c4a1d1a5d240e7750aa0c043a702a737d5 Mon Sep 17 00:00:00 2001
From: QYF-GitLab1 <1940665526@qq.com>
Date: 星期四, 18 七月 2024 10:47:30 +0800
Subject: [PATCH] 1

---
 src/api/index.js |  163 +++++++++++++++++++++++++++++++++++++++---------------
 1 files changed, 118 insertions(+), 45 deletions(-)

diff --git a/src/api/index.js b/src/api/index.js
index cfdaad6..5f87363 100644
--- a/src/api/index.js
+++ b/src/api/index.js
@@ -6,37 +6,35 @@
   return req1({
     url: "/account/register",
     method: "post",
-    data: Obj
+    data: Obj,
   });
 };
 
 // 楠岃瘉鐮�   /account/verifyCode
 export const getverifyCode = (req) => {
-  console.log(req, qs.encode(req), "rrr");
   return req1({
     url: "/account/verifyCode",
     method: "post",
     data: req,
     headers: {
-      "Content-Type": "multipart/form-data"
-    }
+      "Content-Type": "multipart/form-data",
+    },
   });
 };
 
 // login 鐧诲綍
 export const getLogin = (req) => {
-  console.log(req, qs.encode(req), "rrr");
   return req1({
     url: "/account/verification",
     method: "post",
-    data: req
+    data: req,
   });
 };
 // 鑾峰彇鐢ㄦ埛淇℃伅
 export const getUserInfo = () => {
   return req1({
     url: "/account/getUserInfo",
-    method: "post"
+    method: "post",
   });
 };
 
@@ -45,7 +43,7 @@
   return req1({
     url: "/account/resetPassword",
     method: "post",
-    data: Obj
+    data: Obj,
   });
 };
 
@@ -53,7 +51,7 @@
 export const getlogout = () => {
   return req1({
     url: "/account/logout",
-    method: "post"
+    method: "post",
   });
 };
 
@@ -62,7 +60,7 @@
   return req1({
     url: "/account/changePassword",
     method: "post",
-    data: obj
+    data: obj,
   });
 };
 
@@ -71,7 +69,7 @@
 export const getdataOutput = () => {
   return req1({
     url: "/person/dataOutput",
-    method: "post"
+    method: "post",
   });
 };
 
@@ -79,7 +77,7 @@
 export const getHotSearch = () => {
   return req1({
     url: "/person/hotSearch",
-    method: "post"
+    method: "post",
   });
 };
 // 浜虹墿鐩稿叧鐨� 鏉ユ簮
@@ -87,7 +85,7 @@
   return req1({
     url: "/person/source",
     method: "post",
-    params: data
+    params: data,
   });
 };
 // 浜虹墿鐩稿叧鐨� 涓汉鏃剁┖鍦板浘
@@ -95,7 +93,7 @@
   return req1({
     url: "/person/spaceTime",
     method: "post",
-    params: data
+    params: data,
   });
 };
 
@@ -104,7 +102,7 @@
   return req1({
     url: "/person/images",
     method: "post",
-    params: data
+    params: data,
   });
 };
 // 鍖诲浜虹墿鐭ヨ瘑搴� 涓汉浜嬭抗
@@ -112,7 +110,7 @@
   return req1({
     url: "/person/biog",
     method: "post",
-    params: data
+    params: data,
   });
 };
 // 鍖诲浜虹墿鐭ヨ瘑搴� 浜虹墿鍏崇郴
@@ -120,7 +118,15 @@
   return req1({
     url: "/person/personRelationAtSchool",
     method: "post",
-    params: data
+    params: data,
+  });
+};
+// 鍖诲浜虹墿鐭ヨ瘑搴� 浜虹墿鍏崇郴
+export const getNodeCount = (data) => {
+  return req1({
+    url: "/inheritMedical/nodeCount",
+    method: "post",
+    data: data,
   });
 };
 
@@ -129,7 +135,7 @@
   return req1({
     url: "/person/writings",
     method: "post",
-    params: data
+    params: data,
   });
 };
 // 鍖诲浜虹墿鐭ヨ瘑搴� 浜虹墿璇︽儏
@@ -137,17 +143,26 @@
   return req1({
     url: "/person/getPersonInfo",
     method: "post",
-    params: Obj
+    params: Obj,
   });
 };
+export const getWebBasic = (Obj) => {
+  return req1({
+    url: "/person/webBasic",
+    method: "post",
+    params: Obj,
+  });
+};
+
 // 鍖诲浜虹墿鐭ヨ瘑搴� 鍩虹妫�绱�
 export const getFuzzySearch = (requestData) => {
   return req1({
     url: "/person/fuzzySearch",
     method: "post",
     params: {
-      keyword: requestData?.keyword
-    }
+      keyword: requestData?.keyword,
+      personId: requestData?.personId,
+    },
   });
 };
 
@@ -156,19 +171,34 @@
   return req1({
     url: "/person/advanceSearch",
     method: "post",
-    data: Obj
+    data: Obj,
   });
 };
 
 // 涓浗鍦板煙鍦拌氨妫�绱汉鐗�
 export const getRetrieval = (requestData) => {
   return req1({
-    url: "/person/retrieval",
+    url:
+      "/person/retrieval?page=" +
+      requestData?.page +
+      "&pageSize=" +
+      requestData?.pageSize +
+      "&keyword=" +
+      requestData?.keyword +
+      "&dynasty=" +
+      requestData?.dynasty,
     method: "post",
-    data: {
-      keyword: requestData?.keyword || "",
-      dynasty: requestData?.dynasty || ""
-    }
+  });
+};
+// 涓浗鍦板煙鍦拌氨妫�绱汉鐗�
+export const getPreCount = (requestData) => {
+  return req1({
+    url:
+      "/person/retrieval/preCount?keyword=" +
+      requestData?.keyword +
+      "&dynasty=" +
+      requestData?.dynasty,
+    method: "post",
   });
 };
 // 鍖诲浜虹墿鐭ヨ瘑搴�
@@ -178,28 +208,28 @@
   return req1({
     url: "/inheritMedical/list",
     method: "post",
-    data: requestData
+    data: requestData,
   });
 };
 export const inheritMedicalSataStatistics = (requestData) => {
   return req1({
     url: "/inheritMedical/dataStatistics",
     method: "post",
-    data: requestData
+    data: requestData,
   });
 };
 export const inheritMedicalCultureList = (requestData) => {
   return req1({
     url: "/inheritMedical/cultureList",
     method: "post",
-    data: requestData
+    data: requestData,
   });
 };
 export const inheritMedicalRelationList = (requestData) => {
   return req1({
     url: "/inheritMedical/relationList",
     method: "post",
-    data: requestData
+    data: requestData,
   });
 };
 
@@ -209,30 +239,36 @@
   return req1({
     url: "/person/list",
     method: "post",
-    data: data
+    data: data,
   });
 };
 // 妫�绱㈡暟鎹埌鍑�
 export const getPDownload = () => {
   return req1({
     url: "/person/download",
-    method: "post"
+    method: "post",
   });
 };
 // -------------------------P
 
-// 鏈濅唬
+// 鏃舵湡
 export const getDynastyAll = () => {
   return req1({
     url: "/dynasty/list",
-    method: "post"
+    method: "post",
   });
 };
 
 export const getDynasty = () => {
   return req1({
     url: "/dynasty/listAll",
-    method: "post"
+    method: "post",
+  });
+};
+export const getDynastyData = () => {
+  return req1({
+    url: "/person/retrieval/dynasty",
+    method: "post",
   });
 };
 
@@ -240,14 +276,29 @@
 export const getDynastyStatistics = () => {
   return req1({
     url: "/school/dynasty/statistics",
-    method: "get"
+    method: "get",
   });
 };
 
 export const getIntroduction = (id) => {
   return req1({
     url: "/school/introduction?id=" + id,
-    method: "post"
+    method: "post",
+  });
+};
+
+export const schoolAtlas = (id) => {
+  return req1({
+    url: "/person/schoolAtlas?schoolId=" + id,
+    method: "post",
+  });
+};
+
+// 鏌ヨ浜虹墿6绫绘暟鎹�
+export const getPersonData = (id) => {
+  return req1({
+    url: "/person/chain/search/person?personId=" + id + "&maxStep=3",
+    method: "post",
   });
 };
 
@@ -255,7 +306,7 @@
   return req1({
     url: "/person/searchSchoolPerson",
     method: "post",
-    params: data
+    params: data,
   });
 };
 
@@ -264,7 +315,7 @@
 export const getDataStatistics = () => {
   return req1({
     url: "/medical/dataStatistics",
-    method: "post"
+    method: "post",
   });
 };
 // 鏌ヨ
@@ -272,7 +323,7 @@
   return req1({
     url: "/medical/list",
     method: "post",
-    data: data
+    data: data,
   });
 };
 // 璇︽儏
@@ -280,7 +331,7 @@
   return req1({
     url: "/medical/details",
     method: "post",
-    data: data
+    data: data,
   });
 };
 // 鍙栧�硷細RDF銆丯T銆乆ML銆丣SON
@@ -288,18 +339,26 @@
   return req1({
     url: "/medical/dataOutput",
     method: "post",
-    data: Obj
+    data: Obj,
+  });
+};
+
+export const getPersonDataOutput = (Obj) => {
+  return req1({
+    url: "/person/dataOutput",
+    method: "post",
+    params: Obj,
   });
 };
 
 // -----------
 
-// 涓浗鍖诲浜虹墿鐭ヨ瘑搴�
+// 涓浗鍘嗕唬鍖诲浜虹墿鐭ヨ瘑搴�
 // 鏁版嵁缁熻
 export const getPDataStatistics = () => {
   return req1({
     url: "/person/dataStatistics",
-    method: "post"
+    method: "post",
   });
 };
 // ----------------
@@ -307,3 +366,17 @@
 export const getImg = (path) => {
   return baseUrl + "/picture/getImageByFilePath?filePath=" + path;
 };
+
+export const getRelationTypeTreeList = () => {
+  return req1({
+    url: "/personRelationType/getRelationTypeTreeList",
+    method: "post",
+  });
+};
+
+export const getInstitutionList = () => {
+  return req1({
+    url: "/medical/institutionList",
+    method: "post",
+  });
+};

--
Gitblit v1.9.1