From 2b06902e25978254f39bef49ed3cf6b1cab1c033 Mon Sep 17 00:00:00 2001
From: 杨磊 <505174330@qq.com>
Date: 星期五, 26 七月 2024 11:53:09 +0800
Subject: [PATCH] Merge branch 'master' of http://182.92.203.7:2001/r/TCM_CharacterLibrary

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

diff --git a/src/api/index.js b/src/api/index.js
index e77eeec..cff73ae 100644
--- a/src/api/index.js
+++ b/src/api/index.js
@@ -1,222 +1,428 @@
-import req from '@/utils/request/req1.js'
-import req1 from '@/utils/request/req1.js'
-import qs from 'querystring'
+import req from "@/utils/request/req1.js";
+import qs from "querystring";
+import req1, { baseUrl } from "@/utils/request/req1";
 // 娉ㄥ唽鐧诲綍
 export const getaddLogin = (Obj) => {
-	return req1({
-		url: '/account/register',
-		method: 'post',
-		data: Obj
-	})
-}
+  return req1({
+    url: "/account/register",
+    method: "post",
+    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'
-		}
-	})
-}
+  return req1({
+    url: "/account/verifyCode",
+    method: "post",
+    data: req,
+    headers: {
+      "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,
-	})
-}
+  return req1({
+    url: "/account/verification",
+    method: "post",
+    data: req,
+  });
+};
 // 鑾峰彇鐢ㄦ埛淇℃伅
 export const getUserInfo = () => {
-	return req1({
-		url: "/account/getUserInfo",
-		method: "post",
-	})
-}
+  return req1({
+    url: "/account/getUserInfo",
+    method: "post",
+  });
+};
 
 // 閲嶇疆瀵嗙爜
 export const getRestPassword = (Obj) => {
-	return req1({
-		url: '/account/resetPassword',
-		method: 'post',
-		data: Obj
-	})
-}
+  return req1({
+    url: "/account/resetPassword",
+    method: "post",
+    data: Obj,
+  });
+};
 
 // 閫�鍑虹櫥褰�
 export const getlogout = () => {
-	return req1({
-		url: "/account/logout",
-		method: "post",
-	})
-}
+  return req1({
+    url: "/account/logout",
+    method: "post",
+  });
+};
 
 // 淇敼瀵嗙爜
 export const getchangePassword = (obj) => {
-	return req1({
-		url: "/account/changePassword",
-		method: "post",
-		data: obj
-	})
-}
+  return req1({
+    url: "/account/changePassword",
+    method: "post",
+    data: obj,
+  });
+};
 
-// 
+//
 // 浜虹墿鐩稿叧鎺ュ彛鐨勬暟鎹緭鍑�
 export const getdataOutput = () => {
-	return req1({
-		url: "/person/dataOutput",
-		method: "post",
-	})
-}
+  return req1({
+    url: "/person/dataOutput",
+    method: "post",
+  });
+};
 
 // 浜虹墿鐩稿叧鐨� 鐑棬鎼滅储
 export const getHotSearch = () => {
-	return req1({
-		url: '/person/hotSearch',
-		method: 'post'
-	})
-}
+  return req1({
+    url: "/person/hotSearch",
+    method: "post",
+  });
+};
 // 浜虹墿鐩稿叧鐨� 鏉ユ簮
-export const getSource = (id) => {
-	return req1({
-		url: '/person/source',
-		method: 'post',
-		data: id
-	})
-}
-// 浜虹墿鐩稿叧鐨� 涓汉鏃剁┖鍦板浘 
-export const getSpaceTime = (id) => {
-	return req1({
-		url: '/person/spaceTime',
-		method: 'post',
-		data: id
-	})
-}
+export const getSource = (data) => {
+  return req1({
+    url: "/person/source",
+    method: "post",
+    params: data,
+  });
+};
+// 浜虹墿鐩稿叧鐨� 涓汉鏃剁┖鍦板浘
+export const getSpaceTime = (data) => {
+  return req1({
+    url: "/person/spaceTime",
+    method: "post",
+    params: data,
+  });
+};
 
 // 鍖诲浜虹墿鐭ヨ瘑搴撶殑鐩稿叧鍥捐〃
-export const getImages = (id) => {
-	return req1({
-		url: '/person/images',
-		method: 'post',
-		data: id
-	})
-}
+export const getPersonImages = (data) => {
+  return req1({
+    url: "/person/images",
+    method: "post",
+    params: data,
+  });
+};
+// 鍖诲浜虹墿鐭ヨ瘑搴� 涓汉浜嬭抗
+export const getPersonBiog = (data) => {
+  return req1({
+    url: "/person/biog",
+    method: "post",
+    params: data,
+  });
+};
+// 鍖诲浜虹墿鐭ヨ瘑搴� 浜虹墿鍏崇郴
+export const getPersonRelationAtSchool = (data) => {
+  return req1({
+    url: "/person/personRelationAtSchool",
+    method: "post",
+    params: data,
+  });
+};
+// 鍖诲浜虹墿鐭ヨ瘑搴� 浜虹墿鍏崇郴
+export const getNodeCount = (data) => {
+  return req1({
+    url: "/inheritMedical/nodeCount",
+    method: "post",
+    data: data,
+  });
+};
+
 // 鍖诲浜虹墿鐭ヨ瘑搴� 钁楄堪
-export const getWritings = (id) => {
-	return req1({
-		url: '/person/writings',
-		method: 'post',
-		data: id
-	})
-}
+export const getPersonWritings = (data) => {
+  return req1({
+    url: "/person/writings",
+    method: "post",
+    params: data,
+  });
+};
 // 鍖诲浜虹墿鐭ヨ瘑搴� 浜虹墿璇︽儏
 export const getPersonInfo = (Obj) => {
-	return req1({
-		url: '/person/getPersonInfo',
-		method: 'post',
-		data: Obj
-	})
-}
-// 鍖诲浜虹墿鐭ヨ瘑搴� 鍩虹妫�绱�  
-export const getFuzzySearch = (Obj) => {
-	console.log(Obj, 'sss');
-	return req1({
-		url: '/person/fuzzySearch?keyword=' + Obj,
-		method: 'post',
-		// data:Obj
-	})
-}
+  return req1({
+    url: "/person/getPersonInfo",
+    method: "post",
+    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,
+      personId: requestData?.personId,
+    },
+  });
+};
+
+// 鍖诲浜虹墿鐭ヨ瘑搴� 楂樼骇妫�绱�
 export const getAdvanceSearch = (Obj) => {
-	return req1({
-		url: '/person/advanceSearch',
-		method: 'post',
-		data: Obj
-	})
-}
+  return req1({
+    url: "/person/advanceSearch",
+    method: "post",
+    data: Obj,
+  });
+};
 
 // 涓浗鍦板煙鍦拌氨妫�绱汉鐗�
-export const getRetrieval = (dynastyNumber, name) => {
-	return req1({
-		url: '/person/retrieval',
-		method: 'post',
-		data: {
-			dynasty: dynastyNumber,
-			keyword: name
-		}
-	})
-}
+export const getRetrieval = (requestData) => {
+  return req1({
+    url:
+      "/person/retrieval?page=" +
+      requestData?.page +
+      "&pageSize=" +
+      requestData?.pageSize +
+      "&keyword=" +
+      requestData?.keyword +
+      "&dynasty=" +
+      requestData?.dynasty,
+    method: "post",
+  });
+};
+// 涓浗鍦板煙鍦拌氨妫�绱汉鐗�
+export const getPreCount = (requestData) => {
+  return req1({
+    url:
+      "/person/retrieval/preCount?keyword=" +
+      requestData?.keyword +
+      "&dynasty=" +
+      requestData?.dynasty,
+    method: "post",
+  });
+};
 // 鍖诲浜虹墿鐭ヨ瘑搴�
+
+// 涓栧尰浼犳壙
+export const inheritMedicalList = (requestData) => {
+  return req1({
+    url: "/inheritMedical/list",
+    method: "post",
+    data: requestData,
+  });
+};
+export const inheritMedicalSataStatistics = (requestData) => {
+  return req1({
+    url: "/inheritMedical/dataStatistics",
+    method: "post",
+    data: requestData,
+  });
+};
+export const inheritMedicalCultureList = (requestData) => {
+  return req1({
+    url: "/inheritMedical/cultureList",
+    method: "post",
+    data: requestData,
+  });
+};
+export const inheritMedicalRelationList = (requestData) => {
+  return req1({
+    url: "/inheritMedical/relationList",
+    method: "post",
+    data: requestData,
+  });
+};
 
 // 妫�绱㈤〉
 // 鍩虹銆侀珮绾ф绱� ------------------------------
-export const getPList = (person) => {
-	return req1({
-		url: '/person/list',
-		method: 'post',
-		data: person
-	})
-}
+export const getPersonList = (data) => {
+  return req1({
+    url: "/person/list",
+    method: "post",
+    data: data,
+  });
+};
 // 妫�绱㈡暟鎹埌鍑�
 export const getPDownload = () => {
-	return req1({
-		url: '/person/download',
-		method: 'post'
-	})
-}
+  return req1({
+    url: "/person/download",
+    method: "post",
+  });
+};
 // -------------------------P
 
+// 鏃舵湡
+export const getDynastyAll = () => {
+  return req1({
+    url: "/dynasty/list",
+    method: "post",
+  });
+};
 
+export const getDynasty = () => {
+  return req1({
+    url: "/dynasty/listAll",
+    method: "post",
+  });
+};
+export const getDynastyData = () => {
+  return req1({
+    url: "/person/retrieval/dynasty",
+    method: "post",
+  });
+};
 
+// 瀛︽湳鍥捐氨
+export const getDynastyStatistics = () => {
+  return req1({
+    url: "/school/dynasty/statistics",
+    method: "get",
+  });
+};
+
+export const getIntroduction = (id) => {
+  return req1({
+    url: "/school/introduction?id=" + id,
+    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",
+  });
+};
+
+export const getAdvancedData = (data) => {
+  return req1({
+    url: "/person/advanced/search",
+    method: "post",
+    data: data,
+  });
+};
+
+// 鏌ヨ浜虹墿瀛︽湳鍥捐氨
+export const getSchoolInfo = (id) => {
+  return req1({
+    url: "/person/chain/search/school?schoolId=" + id + "&maxStep=3",
+    method: "post",
+  });
+};
+
+export const getPlaceInfo = (data) => {
+  return req1({
+    url: "/person/search/place",
+    method: "post",
+    params: data,
+  });
+};
+
+export const searchSchoolPerson = (data) => {
+  return req1({
+    url: "/person/searchSchoolPerson",
+    method: "post",
+    params: data,
+  });
+};
 
 // 鍖讳簨鍒跺害
 // 鏁版嵁缁熻
 export const getDataStatistics = () => {
-	return req1({
-		url: '/medical/dataStatistics',
-		method: 'post'
-	})
-}
+  return req1({
+    url: "/medical/dataStatistics",
+    method: "post",
+  });
+};
 // 鏌ヨ
 export const getMedicalList = (data) => {
-	return req1({
-		url: '/medical/list',
-		method: 'post',
-		data: data
-	})
-}
+  return req1({
+    url: "/medical/list",
+    method: "post",
+    data: data,
+  });
+};
 // 璇︽儏
-export const getMedicalDetails = (Obj) => {
-	return req1({
-		url: '/medical/details',
-		method: 'post',
-		data: Obj
-	})
-}
+export const getMedicalDetails = (data) => {
+  return req1({
+    url: "/medical/details",
+    method: "post",
+    data: data,
+  });
+};
 // 鍙栧�硷細RDF銆丯T銆乆ML銆丣SON
 export const getMedicalDataOutput = (Obj) => {
-	return req1({
-		url: '/medical/dataOutput',
-		method: 'post',
-		data: Obj
-	})
-}
+  return req1({
+    url: "/medical/dataOutput",
+    method: "post",
+    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'
-	})
-}
-// ----------------
\ No newline at end of file
+  return req1({
+    url: "/person/dataStatistics",
+    method: "post",
+  });
+};
+// ----------------
+
+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",
+  });
+};
+
+export const academicSearch = (data) => {
+  return req1({
+    url: "/person/academic/search",
+    method: "post",
+    params: data,
+  });
+};
+
+export const getPersonTag = () => {
+  return req1({
+    url: "/personTag/list",
+    method: "post",
+  });
+};
+
+export const getSocialDistinction = () => {
+  return req1({
+    url: "/socialDistinction/list",
+    method: "post",
+  });
+};

--
Gitblit v1.9.1