杨磊
2024-05-16 4469428bfec368ea9c735303ff9ad4ed25f5b762
src/api/index.js
@@ -1,6 +1,6 @@
import req from "@/utils/request/req1.js";
import req1 from "@/utils/request/req1.js";
import qs from "querystring";
import req1, { baseUrl } from "@/utils/request/req1";
// 注册登录
export const getaddLogin = (Obj) => {
  return req1({
@@ -87,7 +87,7 @@
  return req1({
    url: "/person/source",
    method: "post",
    data: data
    params: data
  });
};
// 人物相关的 个人时空地图
@@ -95,7 +95,7 @@
  return req1({
    url: "/person/spaceTime",
    method: "post",
    data: data
    params: data
  });
};
@@ -104,7 +104,7 @@
  return req1({
    url: "/person/images",
    method: "post",
    data: data
    params: data
  });
};
// 医学人物知识库 个人事迹
@@ -112,7 +112,7 @@
  return req1({
    url: "/person/biog",
    method: "post",
    data: data
    params: data
  });
};
// 医学人物知识库 人物关系
@@ -120,7 +120,7 @@
  return req1({
    url: "/person/personRelationAtSchool",
    method: "post",
    data: data
    params: data
  });
};
@@ -129,7 +129,7 @@
  return req1({
    url: "/person/writings",
    method: "post",
    data: data
    params: data
  });
};
// 医学人物知识库 人物详情
@@ -137,14 +137,25 @@
  return req1({
    url: "/person/getPersonInfo",
    method: "post",
    data: 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?keyword="+requestData?.keyword,
    url: "/person/fuzzySearch",
    method: "post",
    params: {
      keyword: requestData?.keyword
    }
  });
};
@@ -218,6 +229,44 @@
};
// -------------------------P
// 朝代
export const getDynastyAll = () => {
  return req1({
    url: "/dynasty/list",
    method: "post"
  });
};
export const getDynasty = () => {
  return req1({
    url: "/dynasty/listAll",
    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 searchSchoolPerson = (data) => {
  return req1({
    url: "/person/searchSchoolPerson",
    method: "post",
    params: data
  });
};
// 医事制度
// 数据统计
export const getDataStatistics = () => {
@@ -235,11 +284,11 @@
  });
};
// 详情
export const getMedicalDetails = (Obj) => {
export const getMedicalDetails = (data) => {
  return req1({
    url: "/medical/details",
    method: "post",
    data: Obj
    data: data
  });
};
// 取值:RDF、NT、XML、JSON
@@ -253,8 +302,6 @@
// -----------
// 中国医学人物知识库
// 数据统计
export const getPDataStatistics = () => {
@@ -264,3 +311,7 @@
  });
};
// ----------------
export const getImg = (path) => {
  return baseUrl + "/picture/getImageByFilePath?filePath=" + path;
};