From 020ecfe0ae4ce42c51712a38656fe87faa7cffce Mon Sep 17 00:00:00 2001
From: 马宇豪 <978517621@qq.com>
Date: Fri, 03 Jan 2025 16:04:02 +0800
Subject: [PATCH] 修改数据上报
---
src/api/systemManage/user/index.ts | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
1 files changed, 59 insertions(+), 1 deletions(-)
diff --git a/src/api/systemManage/user/index.ts b/src/api/systemManage/user/index.ts
index 52370a6..ff9950d 100644
--- a/src/api/systemManage/user/index.ts
+++ b/src/api/systemManage/user/index.ts
@@ -41,11 +41,69 @@
method: 'get'
});
},
+
getAllUser: () => {
return request({
url: import.meta.env.VITE_API_URL + `/account/list`,
method: 'get'
});
- }
+ },
+
+ // 获取图片上传路径
+ getPresignUrl: (name: string) => {
+ return request({
+ url: import.meta.env.VITE_API_URL + `/account/file/getPresignUrl`,
+ method: 'post',
+ data: { prefixName: name.split('.')[0], suffixName: name.split('.')[1] }
+ });
+ },
+
+ // 根据uid获取用户证书
+ getCtf: (data: object) => {
+ return request({
+ url: import.meta.env.VITE_API_URL + `/account/cert/list`,
+ method: 'post',
+ data: data
+ });
+ },
+
+ addCtf: (data: object) => {
+ return request({
+ url: import.meta.env.VITE_API_URL + `/account/cert/add`,
+ method: 'post',
+ data: data
+ });
+ },
+
+ // v1
+ modCtf: (data: object) => {
+ return request({
+ url: import.meta.env.VITE_API_URL + `/account/cert/update`,
+ method: 'post',
+ data: data
+ });
+ },
+
+ delCtf: (data: object) => {
+ return request({
+ url: import.meta.env.VITE_API_URL + `/account/cert/delete`,
+ method: 'post',
+ data: data
+ });
+ },
+ pwdMod: (data: object) => {
+ return request({
+ url: import.meta.env.VITE_API_URL + `/auth/pwd-change`,
+ method: 'post',
+ data: data
+ });
+ },
+ pwdModSelf: (data: object) => {
+ return request({
+ url: import.meta.env.VITE_API_URL + `/auth/pwd-change/self`,
+ method: 'post',
+ data: data
+ });
+ },
};
}
--
Gitblit v1.9.2