11
WXL
2024-07-26 d839943b0d194c14c1599f81a17105e7223a5075
src/api/system/user.js
@@ -30,8 +30,8 @@
// 修改用户
export function updateUser(data) {
  return request({
    url: '/system/user',
    method: 'put',
    url: '/system/user/edit',
    method: 'post',
    data: data
  })
}
@@ -39,8 +39,8 @@
// 删除用户
export function delUser(userId) {
  return request({
    url: '/system/user/' + userId,
    method: 'delete'
    url: '/system/user/remove/' + userId,
    method: 'get',
  })
}
@@ -61,7 +61,7 @@
  }
  return request({
    url: '/system/user/resetPwd',
    method: 'put',
    method: 'post',
    data: data
  })
}
@@ -74,7 +74,7 @@
  }
  return request({
    url: '/system/user/changeStatus',
    method: 'put',
    method: 'post',
    data: data
  })
}
@@ -90,8 +90,8 @@
// 修改用户个人信息
export function updateUserProfile(data) {
  return request({
    url: '/system/user/profile',
    method: 'put',
    url: '/system/user/profile/updateProfile',
    method: 'post',
    data: data
  })
}
@@ -104,8 +104,8 @@
  }
  return request({
    url: '/system/user/profile/updatePwd',
    method: 'put',
    params: data
    method: 'post',
    data: data
  })
}
@@ -133,12 +133,26 @@
    method: 'get'
  })
}
// 查询授权角色
export function handleunlock(userName ) {
  return request({
    url: '/system/user/cleanErrorNums/' + userName ,
    method: 'get',
  })
}
// 保存授权角色
export function updateAuthRole(data) {
  return request({
    url: '/system/user/authRole',
    method: 'put',
    url: '/system/user/authRole/insertAuthRole',
    method: 'post',
    params: data
  })
}
// 查询授权角色
export function getdepartment(userName ) {
  return request({
    url: '/system/dingtalk/deptidList/' + 1 ,
    method: 'get',
  })
}