1
YM
2024-06-17 a10960e9cee3776ffd3871e5949f6b474127c428
src/api/index.js
@@ -12,7 +12,6 @@
// 验证码   /account/verifyCode
export const getverifyCode = (req) => {
  console.log(req, qs.encode(req), "rrr");
  return req1({
    url: "/account/verifyCode",
    method: "post",
@@ -25,7 +24,6 @@
// login 登录
export const getLogin = (req) => {
  console.log(req, qs.encode(req), "rrr");
  return req1({
    url: "/account/verification",
    method: "post",
@@ -123,6 +121,14 @@
    params: data
  });
};
// 医学人物知识库 人物关系
export const getNodeCount = (data) => {
  return req1({
    url: "/inheritMedical/nodeCount",
    method: "post",
    data: data
  });
};
// 医学人物知识库 著述
export const getPersonWritings = (data) => {
@@ -154,7 +160,8 @@
    url: "/person/fuzzySearch",
    method: "post",
    params: {
      keyword: requestData?.keyword
      keyword: requestData?.keyword,
      personId: requestData?.personId,
    }
  });
};
@@ -171,8 +178,27 @@
// 中国地域地谱检索人物
export const getRetrieval = (requestData) => {
  return req1({
    url: "/person/retrieval?keyword=" + requestData?.keyword  + "&dynasty=" + requestData?.dynasty,
    method: "post",
    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"
  });
};
// 医学人物知识库
@@ -225,7 +251,7 @@
};
// -------------------------P
// 朝代
// 时期
export const getDynastyAll = () => {
  return req1({
    url: "/dynasty/list",
@@ -236,6 +262,12 @@
export const getDynasty = () => {
  return req1({
    url: "/dynasty/listAll",
    method: "post"
  });
};
export const getDynastyData = () => {
  return req1({
    url: "/person/retrieval/dynasty",
    method: "post"
  });
};
@@ -254,6 +286,15 @@
    method: "post"
  });
};
export const schoolAtlas = (id) => {
  return req1({
    url: "/person/schoolAtlas?schoolId=" + id,
    method: "post"
  });
};
export const searchSchoolPerson = (data) => {
  return req1({
@@ -296,6 +337,14 @@
  });
};
export const getPersonDataOutput = (Obj) => {
  return req1({
    url: "/person/dataOutput",
    method: "post",
    params: Obj
  });
};
// -----------
// 中国医学人物知识库
@@ -311,3 +360,25 @@
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"
  });
};