From e6666db4911ee0214cc57564ded0cbb9534220a4 Mon Sep 17 00:00:00 2001
From: liudong <liudong>
Date: 星期二, 30 七月 2024 15:00:13 +0800
Subject: [PATCH] 知识库页面测试和配置接口调用开发

---
 src/api/authority.ts |   16 ++++++++++++++--
 1 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/src/api/authority.ts b/src/api/authority.ts
index 3db14ab..682fe96 100644
--- a/src/api/authority.ts
+++ b/src/api/authority.ts
@@ -8,7 +8,8 @@
   email: string;
   phoneNumber: string;
   dept: any;
-  resources:any;
+  resources: any;
+  knowledges:any;
   createTime: string;
   status: string;
 }
@@ -37,13 +38,20 @@
   "orderNum": string;
   "target": string;
   "parentId": string;
-  "parentName":string;
+  "parentName": string;
   "children": any;
   "syesourcetype": string;
   "status": string;
   "path": string;
   "perms": string;
   "menuType": string;
+}
+
+export interface Knowledge {
+  "knowledgeId": string;
+  "createTime": string;
+  "updateTime": string;
+  "knowledgeName": string;
 }
 
 export interface Result<T> {
@@ -121,4 +129,8 @@
 
 export function ResourceById(id) {
   return axios.get<Result<Resource>>("/base/system/menu/" + id);
+}
+
+export function KnowledgeList() {
+  return axios.get<Result<Knowledge>>("/base/system/knowledge/list");
 }
\ No newline at end of file

--
Gitblit v1.8.0