diff --git a/src/api/ai/mindmap/index.ts b/src/api/ai/mindmap/index.ts
index def113ba..1b784fac 100644
--- a/src/api/ai/mindmap/index.ts
+++ b/src/api/ai/mindmap/index.ts
@@ -1,7 +1,20 @@
import { getAccessToken } from '@/utils/auth'
import { fetchEventSource } from '@microsoft/fetch-event-source'
import { config } from '@/config/axios/config'
+import request from '@/config/axios'
+// AI 思维导图 VO
+export interface MindMapVO {
+ id: number // 编号
+ userId: number // 用户编号
+ prompt: string // 生成内容提示
+ generatedContent: string // 生成的思维导图内容
+ platform: string // 平台
+ model: string // 模型
+ errorMessage: string // 错误信息
+}
+
+// AI 思维导图生成 VO
export interface AiMindMapGenerateReqVO {
prompt: string
}
@@ -34,5 +47,14 @@ export const AiMindMapApi = {
onclose: onClose,
signal: ctrl.signal
})
+ },
+
+ // 查询思维导图分页
+ getMindMapPage: async (params: any) => {
+ return await request.get({ url: `/ai/mind-map/page`, params })
+ },
+ // 删除思维导图
+ deleteMindMap: async (id: number) => {
+ return await request.delete({ url: `/ai/mind-map/delete?id=` + id })
}
}
diff --git a/src/views/ai/mindmap/manager/index.vue b/src/views/ai/mindmap/manager/index.vue
new file mode 100644
index 00000000..2460165b
--- /dev/null
+++ b/src/views/ai/mindmap/manager/index.vue
@@ -0,0 +1,163 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+
+
+
+
+
+ {{ userList.find((item) => item.id === scope.row.userId)?.nickname }}
+
+
+
+
+
+
+
+
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+