my.js 758 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. import {
  2. request
  3. } from '@/request/request.js';
  4. /*
  5. * 获取用户信息
  6. *
  7. *
  8. */
  9. export function getUserInfoById(userId) {
  10. return request({
  11. url: `/manager/userInfo/${userId}`,
  12. method: 'get'
  13. })
  14. }
  15. /*
  16. * 修改个人信息
  17. * @param {Object} data = {loginName用户名|pwd密码|name昵称|sex性别|phone手机号|email邮箱|portrait头像|organizationId组织类型}
  18. *
  19. */
  20. export function updateUserDetails(data) {
  21. return request({
  22. url: `/manager/userInfo/update`,
  23. method: 'post',
  24. data: data
  25. })
  26. }
  27. /*
  28. * 获取组织项目部门列表
  29. *
  30. *
  31. */
  32. export function getPartList(organizationId, projectId) {
  33. return request({
  34. url: `/manager/role/${organizationId}/${projectId}`,
  35. method: 'get'
  36. })
  37. }