From f67d29de422b39a271f4b6679c66e3284df2e5cb Mon Sep 17 00:00:00 2001 From: YM <479443481@qq.com> Date: 星期六, 11 五月 2024 21:21:20 +0800 Subject: [PATCH] 1 --- src/api/index.js | 49 +++++++++++++++++++++++++++++++++++++++---------- 1 files changed, 39 insertions(+), 10 deletions(-) diff --git a/src/api/index.js b/src/api/index.js index 5b46518..74e0d05 100644 --- a/src/api/index.js +++ b/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, - method: "post" + url: "/person/fuzzySearch", + method: "post", + params: { + keyword: requestData?.keyword + } }); }; @@ -241,6 +252,20 @@ }); }; +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 + }); +}; // 鍖讳簨鍒跺害 // 鏁版嵁缁熻 @@ -286,3 +311,7 @@ }); }; // ---------------- + +export const getImg = (path) => { + return baseUrl + "/picture/getImageByFilePath?filePath=" + path; +}; -- Gitblit v1.9.1