From 9cf32f84934cf13dba77e20fdddf8703e11b0c62 Mon Sep 17 00:00:00 2001
From: liudong <liudong>
Date: 星期二, 13 八月 2024 20:04:20 +0800
Subject: [PATCH] agent会话开发
---
src/api/authority.ts | 38 ++++++++++++++++++++++++++++++++++++++
1 files changed, 38 insertions(+), 0 deletions(-)
diff --git a/src/api/authority.ts b/src/api/authority.ts
index f3a9039..6ef6840 100644
--- a/src/api/authority.ts
+++ b/src/api/authority.ts
@@ -63,6 +63,44 @@
total: number;
}
+export interface Role {
+ roleId: string;
+ createTime: string;
+ updateTime: string;
+ roleName: string;
+ remark: string;
+ iconCls: string;
+ roleSort: string;
+ status: string;
+ roleKey: string;
+ dataScope: string;
+ dept: any;
+ resources: any;
+}
+
+export function RoleList(params: Pagination) {
+ return axios.get<Result<Role[]>>('/base/system/role/list', { params });
+}
+
+export function RoleDelete(id) {
+ return axios.delete('/base/system/role/' + id);
+}
+
+export function RoleEdit(role) {
+ return axios.put('/base/system/role', { role });
+}
+
+export function RoleAdd(role) {
+ return axios.post('/base/system/role', { role });
+}
+
+export function Rolestatus(roleId, status) {
+ return axios.put('/base/system/role/changeStatus', {
+ roleId: roleId,
+ status: status,
+ });
+}
+
export function UserList(params: Pagination) {
return axios.get<Result<User[]>>('/base/system/user/list', { params });
}
--
Gitblit v1.8.0