From 5ff5e947cbd5cc0d0819be8da5bbc18df8965a06 Mon Sep 17 00:00:00 2001 From: liudong <liudong> Date: 星期四, 01 八月 2024 11:06:36 +0800 Subject: [PATCH] 知识库文件的下载 --- src/api/authority.ts | 15 ++++++++++++++- 1 files changed, 14 insertions(+), 1 deletions(-) diff --git a/src/api/authority.ts b/src/api/authority.ts index e322a2e..0a68b1b 100644 --- a/src/api/authority.ts +++ b/src/api/authority.ts @@ -8,6 +8,8 @@ email: string; phoneNumber: string; dept: any; + resources: any; + knowledges:any; createTime: string; status: string; } @@ -36,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 { + "id": string; + "createTime": string; + "updateTime": string; + "name": string; } export interface Result<T> { @@ -120,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