From 3c8070e9f97b42a56564b180bbecf5e54d7709ca Mon Sep 17 00:00:00 2001
From: yinbangzhong <zhongbangyin@126.com>
Date: 星期四, 22 八月 2024 16:44:27 +0800
Subject: [PATCH] role
---
src/api/authority.ts | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/src/api/authority.ts b/src/api/authority.ts
index b8522ba..8f855da 100644
--- a/src/api/authority.ts
+++ b/src/api/authority.ts
@@ -3,17 +3,18 @@
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 {
@@ -78,6 +79,7 @@
resources: any;
knowledges: any;
dialogs: any;
+ agents: any;
}
export function RoleList(params: Pagination) {
@@ -173,9 +175,9 @@
}
export function KnowledgeList() {
- return axios.get<Result<Knowledge>>('/base/system/knowledge/list');
+ return axios.get<Result<Knowledge>>('/api/v1/kb/list');
}
export function DialogList() {
- return axios.get<Result<Knowledge>>('/base/system/dialog/list');
+ return axios.get<Result<Knowledge>>('/api/v1/dialog/list');
}
--
Gitblit v1.8.0