From afeaa739a92f1d4a9f9aeebe4b889ed70dc2bd63 Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Tue, 13 Jan 2026 14:44:49 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 uniapps/work-wx/src/api/user/index.js |   65 ++++++++++++++++++++++++++------
 1 files changed, 52 insertions(+), 13 deletions(-)

diff --git a/uniapps/work-wx/src/api/user/index.js b/uniapps/work-wx/src/api/user/index.js
index 14685d4..a43094a 100644
--- a/uniapps/work-wx/src/api/user/index.js
+++ b/uniapps/work-wx/src/api/user/index.js
@@ -47,19 +47,19 @@
     },
   })
 }
-export const getUserInfo = () => {
-  return request({
-    url: '/blade-system/user/info',
-    method: 'get',
-  });
-};
-export const updateInfo = row => {
-  return request({
-    url: '/blade-system/user/update-info',
-    method: 'post',
-    data: row,
-  });
-};
+// export const getUserInfo = () => {
+//   return request({
+//     url: '/blade-system/user/info',
+//     method: 'get',
+//   });
+// };
+// export const updateInfo = row => {
+//   return request({
+//     url: '/blade-system/user/update-info',
+//     method: 'post',
+//     data: row,
+//   });
+// };
 export const updatePassword = (oldPassword, newPassword, newPassword1) => {
   return request({
     url: '/blade-system/user/update-password',
@@ -98,3 +98,42 @@
     data
   })
 }
+
+export const getUserInfo = () => {
+  return request({
+    url: '/system/user/getInfo',
+    method: 'get',
+  });
+};
+export const updateInfo = row => {
+  return request({
+    url: '/system/user/profile/update',
+    method: 'post',
+    data: row,
+  });
+};
+
+/** 发送重置密码验证码 */
+export const sendResetCode = (phone) => {
+  return request({
+    url: `/system/verificationCode/resetCode/${phone}`,
+    method: 'get',
+  });
+};
+
+/** 根据验证码重置密码 */
+export const resetPassword = (data) => {
+  return request({
+    url: '/system/user/retrievePassword',
+    method: 'post',
+    data: data,
+  });
+};
+
+export const registerUser = (data) => {
+  return request({
+    url: `/system/user/register`,
+    method: 'post',
+    data: data,
+  });
+};

--
Gitblit v1.9.3