(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[28],{

/***/ "./src/api/system/user.js":
/*!********************************!*\
  !*** ./src/api/system/user.js ***!
  \********************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/interopRequireDefault.js */ \"./node_modules/@babel/runtime/helpers/interopRequireDefault.js\").default;\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.addUser = addUser;\nexports.changeUserStatus = changeUserStatus;\nexports.delUser = delUser;\nexports.exportUser = exportUser;\nexports.getUser = getUser;\nexports.getUserProfile = getUserProfile;\nexports.importTemplate = importTemplate;\nexports.listSimpleUsers = listSimpleUsers;\nexports.listUser = listUser;\nexports.resetUserPwd = resetUserPwd;\nexports.updateUser = updateUser;\nexports.updateUserProfile = updateUserProfile;\nexports.updateUserPwd = updateUserPwd;\nexports.uploadAvatar = uploadAvatar;\nvar _request = _interopRequireDefault(__webpack_require__(/*! @/utils/request */ \"./src/utils/request.js\"));\nvar _ruoyi = __webpack_require__(/*! @/utils/ruoyi */ \"./src/utils/ruoyi.js\");\n// 查询用户列表\nfunction listUser(query) {\n  return (0, _request.default)({\n    url: '/system/user/page',\n    method: 'get',\n    params: query\n  });\n}\n\n// 获取用户精简信息列表\nfunction listSimpleUsers() {\n  return (0, _request.default)({\n    url: '/system/user/list-all-simple',\n    method: 'get'\n  });\n}\n\n// 查询用户详细\nfunction getUser(userId) {\n  return (0, _request.default)({\n    url: '/system/user/get?id=' + (0, _ruoyi.praseStrEmpty)(userId),\n    method: 'get'\n  });\n}\n\n// 新增用户\nfunction addUser(data) {\n  return (0, _request.default)({\n    url: '/system/user/create',\n    method: 'post',\n    data: data\n  });\n}\n\n// 修改用户\nfunction updateUser(data) {\n  return (0, _request.default)({\n    url: '/system/user/update',\n    method: 'put',\n    data: data\n  });\n}\n\n// 删除用户\nfunction delUser(userId) {\n  return (0, _request.default)({\n    url: '/system/user/delete?id=' + userId,\n    method: 'delete'\n  });\n}\n\n// 导出用户\nfunction exportUser(query) {\n  return (0, _request.default)({\n    url: '/system/user/export',\n    method: 'get',\n    params: query,\n    responseType: 'blob'\n  });\n}\n\n// 用户密码重置\nfunction resetUserPwd(id, password) {\n  var data = {\n    id: id,\n    password: password\n  };\n  return (0, _request.default)({\n    url: '/system/user/update-password',\n    method: 'put',\n    data: data\n  });\n}\n\n// 用户状态修改\nfunction changeUserStatus(id, status) {\n  var data = {\n    id: id,\n    status: status\n  };\n  return (0, _request.default)({\n    url: '/system/user/update-status',\n    method: 'put',\n    data: data\n  });\n}\n\n// 查询用户个人信息\nfunction getUserProfile() {\n  return (0, _request.default)({\n    url: '/system/user/profile/get',\n    method: 'get'\n  });\n}\n\n// 修改用户个人信息\nfunction updateUserProfile(data) {\n  return (0, _request.default)({\n    url: '/system/user/profile/update',\n    method: 'put',\n    data: data\n  });\n}\n\n// 用户密码重置\nfunction updateUserPwd(oldPassword, newPassword) {\n  var data = {\n    oldPassword: oldPassword,\n    newPassword: newPassword\n  };\n  return (0, _request.default)({\n    url: '/system/user/profile/update-password',\n    method: 'put',\n    data: data\n  });\n}\n\n// 用户头像上传\nfunction uploadAvatar(data) {\n  return (0, _request.default)({\n    url: '/system/user/profile/update-avatar',\n    method: 'put',\n    data: data\n  });\n}\n\n// 下载用户导入模板\nfunction importTemplate() {\n  return (0, _request.default)({\n    url: '/system/user/get-import-template',\n    method: 'get',\n    responseType: 'blob'\n  });\n}\n\n//# sourceURL=webpack:///./src/api/system/user.js?");

/***/ })

}]);