From d91fd1557ebed3e9bcb8c051c71b9d41c0e36eef Mon Sep 17 00:00:00 2001 From: 马宇豪 <978517621@qq.com> Date: 星期二, 02 四月 2024 16:50:07 +0800 Subject: [PATCH] Default Changelist --- 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