From f72cc2c5bc9ea4df7819cf53e3b872024e0583a1 Mon Sep 17 00:00:00 2001
From: feige <791364011@qq.com>
Date: 星期六, 31 八月 2024 10:54:27 +0800
Subject: [PATCH] 修改家庭医生上传

---
 ruoyi-ui/src/api/system/user.js |   84 ++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 80 insertions(+), 4 deletions(-)

diff --git a/ruoyi-ui/src/api/system/user.js b/ruoyi-ui/src/api/system/user.js
index e7a29de..dffe5c2 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({
@@ -155,6 +162,75 @@
   return request({
     url: '/family/all' ,
     method: 'get',
-  
+
   })
-}
\ No newline at end of file
+}
+
+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, clanId)
+{
+	return request({
+	  url:'/self/user/uidAndUJd/'+uid+'/'+tpfid+"/"+clanId,
+	  method: 'get'
+	})
+}
+//淇敼鏃堕�夋嫨閰嶅伓
+export function updatePO(tpfid,sex)
+{
+  return request({
+    url:'/self/user/uidAndUJd/' + tpfid + '/' + sex,
+    method: 'get'
+  })
+}
+//鏂板鏃堕�夋嫨閰嶅伓
+export function addPO(sex, clanId)
+{
+  return request({
+    url:'/self/user/sex/'+sex+"/"+clanId,
+    method: 'get'
+  })
+}

--
Gitblit v1.9.1