customer.js 346 B

123456789101112131415
  1. import request from '@/utils/request';
  2. /**
  3. * 获取当前登录客户信息
  4. */
  5. export function getMyInfo() {
  6. return request({ url: '/system/customer/getInfo', method: 'GET' });
  7. }
  8. /**
  9. * 更新当前登录客户信息
  10. */
  11. export function updateMyInfo(data) {
  12. return request({ url: '/system/customer/updateProfile', method: 'PUT', data });
  13. }