From 8b31ebab2fd3bb4397f4966767a1ed7ddef3ff2c Mon Sep 17 00:00:00 2001 From: ZZJ <zzjdsg2300@163.com> Date: 星期一, 27 九月 2021 17:42:06 +0800 Subject: [PATCH] 系统设置v1.1 --- src/api/user.ts | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 57 insertions(+), 0 deletions(-) diff --git a/src/api/user.ts b/src/api/user.ts index 6d01a0e..0cc8dbd 100644 --- a/src/api/user.ts +++ b/src/api/user.ts @@ -8,6 +8,7 @@ }); }; + export const getSysMenus = () => { return request({ url: "/data/api-u/sysmenus/tree", @@ -30,3 +31,59 @@ data: params }); }; + +export const uploadHeadPic = (params: any) => { + return request({ + url: "/data/api-u/users/uploadHeadPic", + method: "post", + data: params + }); +}; + +export const addUser = (params: any) => { + return request({ + url: "/data/api-u/users/add", + method: "post", + data: params + }); +}; + +export const updateUser = (params: any) => { + return request({ + url: "/data/api-u/users/updateProfile", + method: "post", + data: params + }); +}; + +export const updatePassword = (params: any) => { + return request({ + url: "/data/api-u/users/updatePwd", + method: "post", + data: qs.stringify(params) + }); +}; + +export const deleteUser = (params: any) => { + return request({ + url: "/data/api-u/users/delUser", + method: "post", + data: params + }); +}; + + +export const defHeadPics = () => { + return request({ + url: "/data/api-u/users/defHeadPics", + method: "get" + }); +}; + + +export const getRoles = () => { + return request({ + url: "/data/api-v/role/findAll", + method: "get" + }); +}; \ No newline at end of file -- Gitblit v1.8.0