From 1b9fea7d4af68d8f933b2dc42bf6084b9646f64c Mon Sep 17 00:00:00 2001 From: 马宇豪 <978517621@qq.com> Date: 星期二, 04 三月 2025 08:39:55 +0800 Subject: [PATCH] 修改作业等级名称 --- src/api/systemManage/user/index.ts | 68 +++++++++++++++++++++++++++++++++ 1 files changed, 67 insertions(+), 1 deletions(-) diff --git a/src/api/systemManage/user/index.ts b/src/api/systemManage/user/index.ts index 73ab166..ff9950d 100644 --- a/src/api/systemManage/user/index.ts +++ b/src/api/systemManage/user/index.ts @@ -27,17 +27,83 @@ }); }, // v1 + deleteUser: (data: object) => { + return request({ + url: import.meta.env.VITE_API_URL + `/account/del`, + method: 'post', + data: data + }); + }, + // v1 getUserLByDepartment: (depId: number | null) => { return request({ url: import.meta.env.VITE_API_URL + `/account/dep/list?depId=${depId == null ? '' : depId}`, 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