From 7fc578dc2032fac935267e92208f7f11384e3800 Mon Sep 17 00:00:00 2001
From: feige <791364011@qq.com>
Date: 星期四, 28 十一月 2024 08:36:36 +0800
Subject: [PATCH] 修改了相关bug

---
 ruoyi-ui/src/api/self/index.js |  117 +++++++++++++++++++++++++++++++++++++++++++++-------------
 1 files changed, 91 insertions(+), 26 deletions(-)

diff --git a/ruoyi-ui/src/api/self/index.js b/ruoyi-ui/src/api/self/index.js
index 7c2c640..c473ba0 100644
--- a/ruoyi-ui/src/api/self/index.js
+++ b/ruoyi-ui/src/api/self/index.js
@@ -5,31 +5,12 @@
   return request({
     url: '/self/user' ,
     method: 'get',
-
   })
 }
-
-// 鏌ョ湅鐢ㄦ埛涓昏鎴愬憳鍏崇郴
-export function getIndividualRelation(Id) {
-  return request({
-    url: '/self/user/relation' ,
-    method: 'get',
-
-  })
-}
-
-// 鍒犻櫎涓汉淇℃伅
-export function delIndividual(Ids) {
-  return request({
-    url: '/self/user' ,
-    method: 'delete'
-  })
-}
-
 //鏇存柊涓汉淇℃伅
 export function updateIndividual(data) {
   return request({
-    url: '/self/user',
+    url: '/self/user/updateInfo',
     method: 'put',
     data: data
   })
@@ -45,11 +26,49 @@
   })
 }
 
+// 鍒犻櫎涓汉淇℃伅
+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) {
-  
   return request({
     url: '/zExperience/all',
     method: 'get',
@@ -80,7 +99,7 @@
 export function delExperience(ids)
 {
   return request({
-    url: '/zExperience' +ids,
+    url: '/zExperience/' +ids,
     method: 'delete',
   })
 }
@@ -116,11 +135,18 @@
 export function delCertificate(ids)
 {
   return request({
-    url: '/zCertificate' +ids,
+    url: '/zCertificate/' +ids,
     method: 'delete',
   })
 }
-
+//璇佷欢绫诲瀷鏁版嵁
+export function listType(query) {
+  return request({
+    url: '/zCertificate/type',
+    method: 'get',
+    params: query
+  })
+}
 // 鏌ヨ鍑哄浗鎯呭喌
 export function getAbroadList() {
   return request({
@@ -149,10 +175,10 @@
 }
 
 //鍒犻櫎鍑哄浗鎯呭喌
-export function delAbroad()
+export function delAbroad(ids)
 {
   return request({
-    url: '/zAbroad/1' ,
+    url: '/zAbroad/' +ids ,
     method: 'delete',
   })
 }
@@ -191,3 +217,42 @@
     data: data
   })
 }
+
+//鍒犻櫎涓汉鑷紶
+export function delAutobiography(ids)
+{
+  return request({
+    url: '/zAutobiography/' +ids ,
+    method: 'delete',
+  })
+}
+
+
+//鎷垮埌涓汉鑷紶
+export function getCategory()
+{
+  return request({
+    url: '/zDict/byId',
+    method: 'get',
+    params: {'id':23}
+  })
+}
+
+//涓婁紶鏂囦欢
+export function uploadPic(data) {
+  return request({
+    url: '/common/uploads',
+    method: 'post',
+    data: data
+  })
+}
+//涓嬭浇鏂囦欢
+export function download(data) {
+  return request({
+    url: '/common/downLoadFile',
+    method: 'get',
+    params: data,
+    responseType: 'blob'
+  })
+}
+

--
Gitblit v1.9.1