From edf97cb2bfe110123a6dacc1cd8c52ce400ff1db Mon Sep 17 00:00:00 2001
From: Tcsm <1377977403@qq.com>
Date: 星期三, 19 七月 2023 00:46:03 +0800
Subject: [PATCH] 新增个人记事本展示和详情页

---
 ruoyi-ui/src/api/self/index.js |   64 +++++++++++++++++++++-----------
 1 files changed, 42 insertions(+), 22 deletions(-)

diff --git a/ruoyi-ui/src/api/self/index.js b/ruoyi-ui/src/api/self/index.js
index f2f201b..09dfb91 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,45 @@
   })
 }
 
+// 鍒犻櫎涓汉淇℃伅
+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) {
@@ -148,10 +168,10 @@
 }
 
 //鍒犻櫎鍑哄浗鎯呭喌
-export function delAbroad()
+export function delAbroad(ids)
 {
   return request({
-    url: '/zAbroad/1' ,
+    url: '/zAbroad/' +ids ,
     method: 'delete',
   })
 }
@@ -191,8 +211,8 @@
   })
 }
 
-//鎷垮埌鑷紶
-export function getAutobiography()
+//鎷垮埌涓汉鑷紶
+export function getCategory()
 {
   return request({
     url: '/zDict/byId',

--
Gitblit v1.9.1