You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
716 B

  1. import util from '../common/util.js'
  2. /*export const getUserInfo = (data = {}) => {
  3. return util.request(
  4. '/api/my/userInfo',
  5. (res) => {
  6. console.log('用户信息请求成功:', res);
  7. },
  8. {data},
  9. (err) => {
  10. console.log('用户信息请求失败:', err);
  11. }
  12. );
  13. };
  14. */
  15. import {
  16. http
  17. } from '../utils/http'
  18. /**
  19. * 用户信息获取接口
  20. * @param data
  21. * @returns {Promise<unknown>}
  22. */
  23. export const getUserInfo = (data) => {
  24. return http({
  25. method: 'POST',
  26. url: '/api/my/userInfo',
  27. data: data
  28. })
  29. }
  30. export const updateUserInfo = (data) => {
  31. return http({
  32. method: 'POST',
  33. url: '/api/my/updateUserInfo',
  34. data: data
  35. })
  36. }