From 514778f64e7708db4443a1c93c902e8294939f50 Mon Sep 17 00:00:00 2001
From: zhangxiao <898441624@qq.com>
Date: 星期六, 17 八月 2024 11:10:03 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.5.5:10010/r/web/flow_web
---
src/api/authority.ts | 49 ++++++++++++++++++++++++++++++++++++++++++++++---
1 files changed, 46 insertions(+), 3 deletions(-)
diff --git a/src/api/authority.ts b/src/api/authority.ts
index 64cb6ca..697a8b3 100644
--- a/src/api/authority.ts
+++ b/src/api/authority.ts
@@ -3,16 +3,18 @@
export interface User {
userId: string;
+ loginName:string;
userName: string;
nickName: string;
email: string;
phoneNumber: string;
dept: any;
- resources: any;
- knowledges: any;
- dialogs: any;
+ deptName:string;
createTime: string;
status: string;
+ psw:string;
+ role:string;
+ roleName:string;
}
export interface Organization {
@@ -62,6 +64,47 @@
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;
+ knowledges: any;
+ dialogs: any;
+ agents: 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