From f468170d79dee3f8efb75705c7e23a1b53e54e91 Mon Sep 17 00:00:00 2001 From: feige <791364011@qq.com> Date: 星期二, 29 七月 2025 22:08:02 +0800 Subject: [PATCH] 修改了内容 --- ruoyi-ui/src/api/system/user.js | 92 ++++++++++++++++++++++++++++++++++++++++++++-- 1 files changed, 88 insertions(+), 4 deletions(-) diff --git a/ruoyi-ui/src/api/system/user.js b/ruoyi-ui/src/api/system/user.js index e7a29de..57da77e 100644 --- a/ruoyi-ui/src/api/system/user.js +++ b/ruoyi-ui/src/api/system/user.js @@ -9,6 +9,14 @@ params: query }) } +// 鏌ヨ鏅�氱敤鎴峰垪琛� +export function listCommonUser(query) { + return request({ + url: '/system/user/listCommonUser', + method: 'get', + params: query + }) +} // 鏌ヨ鐢ㄦ埛璇︾粏 export function getUser(userId) { @@ -30,12 +38,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 +170,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) +{ + return request({ + url:'/self/user/uidUJd/'+uid+'/'+tpfid, + method: 'get' + }) +} +//淇敼鏃堕�夋嫨閰嶅伓 +export function updatePO(tpfid,sex, clanId) +{ + return request({ + url:'/self/user/uidAndUJd/' + tpfid + '/' + sex+"/"+clanId, + method: 'get' + }) +} +//鏂板鏃堕�夋嫨閰嶅伓 +export function addPO(sex, clanId) +{ + return request({ + url:'/self/user/sex/'+sex+"/"+clanId, + method: 'get' + }) +} -- Gitblit v1.9.1