From 97c573e810e85fe73fdf2d15b5ab1e04248d17a6 Mon Sep 17 00:00:00 2001
From: zhangxiao <898441624@qq.com>
Date: 星期五, 16 八月 2024 14:12:25 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.5.5:10010/r/web/flow_web
---
src/api/authority.ts | 50 ++++++++++++++++++++++++++++++++++++++++++++++++--
1 files changed, 48 insertions(+), 2 deletions(-)
diff --git a/src/api/authority.ts b/src/api/authority.ts
index 76e14c9..6e7240a 100644
--- a/src/api/authority.ts
+++ b/src/api/authority.ts
@@ -3,16 +3,21 @@
export interface User {
userId: string;
+ loginName:string;
userName: string;
nickName: string;
email: string;
phoneNumber: string;
dept: any;
+ deptName:string;
resources: any;
knowledges: any;
dialogs: any;
createTime: string;
status: string;
+ psw:string;
+ role:string;
+ roleName:string;
}
export interface Organization {
@@ -62,6 +67,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 });
}
@@ -85,8 +131,8 @@
return axios.post('/base/system/user', { user });
}
-export function UserDelete(userId) {
- return axios.delete('/base/system/user/' + userId);
+export function UserDelete(id) {
+ return axios.delete('/base/system/user/' + id);
}
export function OrganizationList(key: string) {
--
Gitblit v1.8.0