From ed01afc2adaf15304c5cf7bd17d57c8801c6614c Mon Sep 17 00:00:00 2001
From: Tcsm <1377977403@qq.com>
Date: 星期一, 27 三月 2023 21:16:34 +0800
Subject: [PATCH] 在api新增self

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

diff --git a/ruoyi-ui/src/api/self/index.js b/ruoyi-ui/src/api/self/index.js
new file mode 100644
index 0000000..ba6cebe
--- /dev/null
+++ b/ruoyi-ui/src/api/self/index.js
@@ -0,0 +1,46 @@
+import request from '@/utils/request'
+
+// 鏍规嵁id鏌ヨ涓汉璇︾粏淇℃伅
+export function getIndividualInfo(id) {
+  return request({
+    url: '/self/user' + id,
+    method: 'get',
+
+  })
+}
+
+// 鏌ョ湅鐢ㄦ埛涓昏鎴愬憳鍏崇郴
+export function getIndividualRelation(Id) {
+  return request({
+    url: '/self/user/relation' + Id,
+    method: 'get',
+
+  })
+}
+
+// 鍒犻櫎涓汉淇℃伅
+export function delIndividual(Ids) {
+  return request({
+    url: '/self/user' + Ids,
+    method: 'delete'
+  })
+}
+
+//鏇存柊涓汉淇℃伅
+export function updateIndividual(data) {
+  return request({
+    url: '/self/user',
+    method: 'put',
+    data: data
+  })
+}
+
+//澧炲姞涓汉淇℃伅
+export function addIndividual(data)
+{
+  return request({
+    url: '/self/user',
+    method: 'post',
+    data: data
+  })
+}

--
Gitblit v1.9.1