🎨合并编译打包

This commit is contained in:
2024-06-04 09:55:48 +08:00
parent e1f168b274
commit 6d4f4b2e02
275 changed files with 17590 additions and 951 deletions

32
web-src/src/api/user.ts Normal file
View File

@@ -0,0 +1,32 @@
import { http } from "@/utils/http";
import { baseUri } from "@/api/utils";
// 获取当前登陆用户信息
export const getUser = () => {
return http.request<any>("get", baseUri("/user"));
};
// 获取用户列表
export const userList = (params?: object) => {
return http.request("get", baseUri("/user/list"), { params });
};
// 切换用户状态
export const changeUserStatus = (data?: object) => {
return http.request("put", baseUri("/user/change-status"), { data });
};
// 新增/编辑用户信息
export const editUser = (data?: object) => {
return http.request("post", baseUri("/user/save"), { data });
};
// 删除管理员
export const deleteUser = (userId: string) => {
return http.request("delete", baseUri("/user/delete/" + userId));
};
// 修改密码
export const changePassword = (data?: object) => {
return http.request("post", baseUri("/user/change-password"), { data });
};