From 7657e1b2fa251a2ea372710ad75cb395a3c0e374 Mon Sep 17 00:00:00 2001
From: hyb <kk_huangyangbo@163.com>
Date: Fri, 30 Jan 2026 07:15:55 +0000
Subject: [PATCH] feat: 新增将两种加密方式合并一个脚本、新增批量修改邮箱功能

---
 测试组/Test_platform/Interface_automation/frontend/src/api/user.js |   37 ++++++++++++++++++++++++++++++++++++-
 1 files changed, 36 insertions(+), 1 deletions(-)

diff --git "a/\346\265\213\350\257\225\347\273\204/Test_platform/Interface_automation/frontend/src/api/user.js" "b/\346\265\213\350\257\225\347\273\204/Test_platform/Interface_automation/frontend/src/api/user.js"
index 0042831..41b4d96 100644
--- "a/\346\265\213\350\257\225\347\273\204/Test_platform/Interface_automation/frontend/src/api/user.js"
+++ "b/\346\265\213\350\257\225\347\273\204/Test_platform/Interface_automation/frontend/src/api/user.js"
@@ -10,11 +10,46 @@
       Authorization: store.token
     }
   }).then(res => {
-    // 密码修改成功后清除token和用户信息
     store.token = null
     store.user = null
     store.name = null
     store.id = null
     return res.data
   })
+}
+
+export function register(data) {
+  return axios({
+    url: '/api/user/register',
+    method: 'post',
+    data
+  }).then(res => {
+    return res.data
+  })
+}
+
+export function getUserApprovalList(params) {
+  return axios({
+    url: '/api/user/approval/',
+    method: 'get',
+    params,
+    headers: {
+      Authorization: store.token
+    }
+  }).then(res => {
+    return res.data
+  })
+}
+
+export function approveUser(userId, data) {
+  return axios({
+    url: `/api/user/approval/${userId}/approve/`,
+    method: 'post',
+    data,
+    headers: {
+      Authorization: store.token
+    }
+  }).then(res => {
+    return res.data
+  })
 }
\ No newline at end of file

--
Gitblit v1.9.1