WXL
2024-09-09 d27e3ada8f1e9c005747988e9bf2519fcd6da21a
src/api/system/user.js
@@ -13,7 +13,7 @@
// 查询用户详细
export function getUser(userId) {
  return request({
    url: '/system/user/' + parseStrEmpty(userId),
    url: '/system/user/getInfo/' + parseStrEmpty(userId),
    method: 'get'
  })
}
@@ -21,7 +21,7 @@
// 新增用户
export function addUser(data) {
  return request({
    url: '/system/user',
    url: '/system/user/add',
    method: 'post',
    data: data
  })
@@ -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'
  })
}
@@ -52,7 +52,7 @@
  }
  return request({
    url: '/system/user/resetPwd',
    method: 'put',
    method: 'post',
    data: data
  })
}
@@ -64,8 +64,8 @@
    status
  }
  return request({
    url: '/system/user/changeStatus',
    method: 'put',
    url: '/system/user/changeStatus/edit',
    method: 'post',
    data: data
  })
}
@@ -81,8 +81,8 @@
// 修改用户个人信息
export function updateUserProfile(data) {
  return request({
    url: '/system/user/profile',
    method: 'put',
    url: '/system/user/profile/edit',
    method: 'post',
    data: data
  })
}
@@ -95,7 +95,7 @@
  }
  return request({
    url: '/system/user/profile/updatePwd',
    method: 'put',
    method: 'post',
    params: data
  })
}
@@ -120,8 +120,8 @@
// 保存授权角色
export function updateAuthRole(data) {
  return request({
    url: '/system/user/authRole',
    method: 'put',
    url: '/system/user/authRole/edit',
    method: 'post',
    params: data
  })
}