From be4c17512fe93511c21939d594c843b9594b1549 Mon Sep 17 00:00:00 2001
From: feige <791364011@qq.com>
Date: 星期四, 29 八月 2024 22:51:39 +0800
Subject: [PATCH] 修改成昵称登录了

---
 ruoyi-ui/src/api/system/user.js |   88 +++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 86 insertions(+), 2 deletions(-)

diff --git a/ruoyi-ui/src/api/system/user.js b/ruoyi-ui/src/api/system/user.js
index b28e58c..231d1e3 100644
--- a/ruoyi-ui/src/api/system/user.js
+++ b/ruoyi-ui/src/api/system/user.js
@@ -30,12 +30,19 @@
 // 淇敼鐢ㄦ埛
 export function updateUser(data) {
   return request({
-    url: '/system/user',
+    url: '/system/user/updateUserInfo',
+    method: 'post',
+    data: data
+  })
+}
+export function updateUserInfo(data)
+{
+  return request({
+    url: '/self/user',
     method: 'put',
     data: data
   })
 }
-
 // 鍒犻櫎鐢ㄦ埛
 export function delUser(userId) {
   return request({
@@ -150,3 +157,80 @@
 
   })
 }
+//鏌ョ湅瀹跺涵淇℃伅
+export function getAllFamilys(){
+  return request({
+    url: '/family/all' ,
+    method: 'get',
+
+  })
+}
+
+export function getInfoByFid(fid)
+{
+  return request({
+    url:'/self/user/list/getInfoByfid/'+fid,
+    method: 'get'
+  })
+}
+export function getIndividual(id){
+  return request({
+    url:'/self/user/'+id,
+    method: 'get'
+  })
+}
+export function getAllInfo(clanId){
+  return request({
+    url:'/self/user/allFamInfo?clanId='+clanId,
+    method: 'get'
+  })
+}
+export function setAuority(data)
+{
+  return request({
+    url:'/authority/empower',
+    method:'post',
+    data:data
+  })
+}
+export function getUserByFidAid(data)
+{
+  return request({
+    url:'/authority/getInfoByAidFid',
+    method: 'post',
+    data: data
+  })
+}
+export function deleteUserByFidAid(data)
+{
+  return request({
+    url:'/authority/deleteInfoByAidFid',
+    method: 'post',
+    data: data
+  })
+}
+// export function get
+//淇敼鐖朵翰姣嶄翰
+export function updateFM(uid, tpfid)
+{
+	return request({
+	  url:'/self/user/uidAndUJd/'+uid+'/'+tpfid,
+	  method: 'get'
+	})
+}
+//淇敼鏃堕�夋嫨閰嶅伓
+export function updatePO(tpfid,sex)
+{
+  return request({
+    url:'/self/user/uidAndUJd/' + tpfid + '/' + sex,
+    method: 'get'
+  })
+}
+//鏂板鏃堕�夋嫨閰嶅伓
+export function addPO(sex)
+{
+  return request({
+    url:'/self/user/sex/'+sex,
+    method: 'get'
+  })
+}

--
Gitblit v1.9.1