From 62fb43a7c2e14109093af94f7282820a0242d443 Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期一, 10 七月 2023 11:25:13 +0800
Subject: [PATCH] 代码整合

---
 Source/UBCS-WEB/dist/src/api/system/user.js |  150 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 150 insertions(+), 0 deletions(-)

diff --git a/Source/UBCS-WEB/dist/src/api/system/user.js b/Source/UBCS-WEB/dist/src/api/system/user.js
new file mode 100644
index 0000000..9f94fef
--- /dev/null
+++ b/Source/UBCS-WEB/dist/src/api/system/user.js
@@ -0,0 +1,150 @@
+import request from '@/router/axios';
+
+export const getList = (current, size, params, deptId) => {
+  return request({
+    url: '/api/ubcs-user/page',
+    method: 'get',
+    params: {
+      ...params,
+      current,
+      size,
+      deptId,
+    }
+  })
+}
+
+export const remove = (ids) => {
+  return request({
+    url: '/api/ubcs-user/remove',
+    method: 'post',
+    params: {
+      ids,
+    }
+  })
+}
+
+export const add = (row) => {
+  return request({
+    url: '/api/ubcs-user/submit',
+    method: 'post',
+    data: row
+  })
+}
+
+export const update = (row) => {
+  return request({
+    url: '/api/ubcs-user/update',
+    method: 'post',
+    data: row
+  })
+}
+
+export const updatePlatform = (userId, userType, userExt) => {
+  return request({
+    url: '/api/ubcs-user/update-platform',
+    method: 'post',
+    params: {
+      userId,
+      userType,
+      userExt,
+    }
+  })
+}
+
+export const getUser = (id) => {
+  return request({
+    url: '/api/ubcs-user/detail',
+    method: 'get',
+    params: {
+      id,
+    }
+  })
+}
+
+export const getUserPlatform = (id) => {
+  return request({
+    url: '/api/ubcs-user/platform-detail',
+    method: 'get',
+    params: {
+      id,
+    }
+  })
+}
+
+export const getUserInfo = () => {
+  return request({
+    url: '/api/ubcs-user/info',
+    method: 'get',
+  })
+}
+
+export const resetPassword = (userIds) => {
+  return request({
+    url: '/api/ubcs-user/reset-password',
+    method: 'post',
+    params: {
+      userIds,
+    }
+  })
+}
+
+export const updatePassword = (oldPassword, newPassword, newPassword1) => {
+  return request({
+    url: '/api/ubcs-user/update-password',
+    method: 'post',
+    params: {
+      oldPassword,
+      newPassword,
+      newPassword1,
+    }
+  })
+}
+
+export const updateInfo = (row) => {
+  return request({
+    url: '/api/ubcs-user/update-info',
+    method: 'post',
+    data: row
+  })
+}
+
+export const grant = (userIds, roleIds) => {
+  return request({
+    url: '/api/ubcs-user/grant',
+    method: 'post',
+    params: {
+      userIds,
+      roleIds,
+    }
+  })
+}
+
+export const unlock = (userIds) => {
+  return request({
+    url: '/api/ubcs-user/unlock',
+    method: 'post',
+    params: {
+      userIds,
+    }
+  })
+}
+
+//瀵嗙爜閰嶇疆
+export const insert =(UserPwdstrategyVO) => {
+  return request({
+    url:'/api/ubcs-system/user-pwdstrategy/insert',
+    method:'put',
+    data:UserPwdstrategyVO
+  })
+}
+
+// 鎻愰啋鏃堕棿
+export const check =(userId) => {
+  return request({
+    url: '/api/ubcs-user/check-renexpr',
+    method: 'post',
+    params:{
+      userId
+    }
+  })
+}

--
Gitblit v1.9.3