feige
2024-06-16 2f56209d3cdfda779aeed6cd30b1c0cc0cda3e70
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({
@@ -133,3 +140,81 @@
    method: 'get'
  })
}
//查看自己的权限
export function getSelfPermission(data) {
  return request({
    url: '/authority/condition',
    method: 'post',
    data: data
  })
}
//查看
export function getFamilyids(id) {
  return request({
    url: '/family/'+id ,
    method: 'get',
  })
}
//查看家庭信息
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(){
  return request({
    url:'/self/user/allFamInfo',
    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'
   })
}