From ca8f811c2a69f6004674dfacd204701c7ad23c54 Mon Sep 17 00:00:00 2001 From: yz3456 <2753272399@qq.com> Date: 星期五, 02 八月 2024 12:05:49 +0800 Subject: [PATCH] 完成了家大事迹和家庭资产管理的分享 --- ruoyi-ui/src/api/self/index.js | 82 ++++++++++++++++++++++++++++++----------- 1 files changed, 60 insertions(+), 22 deletions(-) diff --git a/ruoyi-ui/src/api/self/index.js b/ruoyi-ui/src/api/self/index.js index 58824f2..e29e54f 100644 --- a/ruoyi-ui/src/api/self/index.js +++ b/ruoyi-ui/src/api/self/index.js @@ -8,24 +8,6 @@ }) } - -// 鏌ョ湅鐢ㄦ埛涓昏鎴愬憳鍏崇郴 -export function getIndividualRelation(Id) { - return request({ - url: '/self/user/relation' , - method: 'get', - - }) -} - -// 鍒犻櫎涓汉淇℃伅 -export function delIndividual(ids) { - return request({ - url: '/self/user/' +ids, - method: 'delete' - }) -} - //鏇存柊涓汉淇℃伅 export function updateIndividual(data) { return request({ @@ -45,7 +27,46 @@ }) } +// 鍒犻櫎涓汉淇℃伅 +export function delIndividual(ids) { + return request({ + url: '/self/user/' +ids, + method: 'delete' + }) +} +// 鏌ョ湅鐢ㄦ埛涓昏鎴愬憳鍏崇郴 +export function getIndividualRelation() { + return request({ + url: '/self/user/relation', + method: 'get', + }) +} +//澧炲姞鎴愬憳鍏崇郴 +export function addRelation(data) +{ + return request({ + url: '/self/user/relation', + method: 'post', + data: data + }) +} + +// 鍒犻櫎鎴愬憳鍏崇郴 +export function delRelation(ids) { + return request({ + url: '/self/user/relation/' +ids, + method: 'delete' + }) +} +//鏇存柊鎴愬憳鍏崇郴 +export function updateRelation(data) { + return request({ + url: '/self/user/relation', + method: 'put', + data: data + }) +} //鏌ヨ鎵�鏈変釜浜虹粡鍘� export function listExperience(query) { @@ -119,7 +140,14 @@ method: 'delete', }) } - +//璇佷欢绫诲瀷鏁版嵁 +export function listType(query) { + return request({ + url: '/zCertificate/type', + method: 'get', + params: query + }) +} // 鏌ヨ鍑哄浗鎯呭喌 export function getAbroadList() { return request({ @@ -148,10 +176,10 @@ } //鍒犻櫎鍑哄浗鎯呭喌 -export function delAbroad() +export function delAbroad(ids) { return request({ - url: '/zAbroad/1' , + url: '/zAbroad/' +ids , method: 'delete', }) } @@ -191,6 +219,16 @@ }) } +//鍒犻櫎涓汉鑷紶 +export function delAutobiography(ids) +{ + return request({ + url: '/zAutobiography/' +ids , + method: 'delete', + }) +} + + //鎷垮埌涓汉鑷紶 export function getCategory() { @@ -204,7 +242,7 @@ //涓婁紶鏂囦欢 export function uploadPic(data) { return request({ - url: '/common/upload', + url: '/common/uploads', method: 'post', data: data }) -- Gitblit v1.9.1