|
@@ -1,3 +1,11 @@
|
|
|
|
+/*
|
|
|
|
+ * @Author: zhanghaifeng
|
|
|
|
+ * @Date: 2024-11-04 16:39:08
|
|
|
|
+ * @LastEditors: zhanghaifeng
|
|
|
|
+ * @LastEditTime: 2024-11-07 13:56:39
|
|
|
|
+ * @Description:
|
|
|
|
+ * @FilePath: /hospital-project/src/api/roles.ts
|
|
|
|
+ */
|
|
import { http } from "@/utils/http";
|
|
import { http } from "@/utils/http";
|
|
|
|
|
|
type pageRole = {
|
|
type pageRole = {
|
|
@@ -30,6 +38,9 @@ export const postAddRole = data => {
|
|
export const postUpdateRole = data => {
|
|
export const postUpdateRole = data => {
|
|
return http.request<pageRole>("post", "/sysRole/updateRole", { data });
|
|
return http.request<pageRole>("post", "/sysRole/updateRole", { data });
|
|
};
|
|
};
|
|
|
|
+export const postUpdateRoleName = data => {
|
|
|
|
+ return http.request<pageRole>("post", "/sysRole/updateRoleName", { data });
|
|
|
|
+};
|
|
// 查询角色下用户
|
|
// 查询角色下用户
|
|
export const postPageUserByRole = data => {
|
|
export const postPageUserByRole = data => {
|
|
return http.request<pageRoleList>("post", "/sysRole/pageUserByRole", {
|
|
return http.request<pageRoleList>("post", "/sysRole/pageUserByRole", {
|