index.js 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. import {httpApi} from "../../request/httpApi";
  2. export default {
  3. //修改密码
  4. async updatePassword(form, msg = true) {
  5. return httpApi({
  6. url: '/api/blade-user/update-password',
  7. method: 'post',
  8. params: form
  9. }, msg);
  10. },
  11. //设置默认项目
  12. async setDefaultProject(form, msg = true) {
  13. return httpApi({
  14. url: '/api/blade-business/defaultProject/save',
  15. method: 'post',
  16. data: form
  17. }, msg);
  18. },
  19. //获取默认项目
  20. async getDefaultProject(form, msg = true) {
  21. return httpApi({
  22. url: '/api/blade-business/defaultProject/queryUserDefault',
  23. method: 'get',
  24. params: form
  25. }, msg);
  26. },
  27. //更新用户信息
  28. async updateUserInfo(form, msg = true) {
  29. return httpApi({
  30. url: '/api/blade-user/update-info',
  31. method: 'post',
  32. data: form
  33. }, msg);
  34. },
  35. //获取用户信息
  36. async queryCurrentUserData(form, msg = true) {
  37. return httpApi({
  38. url: '/api/blade-business/userViewProjectContract/queryCurrentUserData',
  39. method: 'post',
  40. data: form
  41. }, msg);
  42. },
  43. }