diff --git a/src/api/ai/model/tool/index.ts b/src/api/ai/model/tool/index.ts new file mode 100644 index 00000000..7926fa86 --- /dev/null +++ b/src/api/ai/model/tool/index.ts @@ -0,0 +1,37 @@ +import request from '@/config/axios' + +// AI 工具 VO +export interface ToolVO { + id: number // 工具编号 + name: string // 工具名称 + description: string // 工具描述 + status: number // 状态 +} + +// AI 工具 API +export const ToolApi = { + // 查询工具分页 + getToolPage: async (params: any) => { + return await request.get({ url: `/ai/tool/page`, params }) + }, + + // 查询工具详情 + getTool: async (id: number) => { + return await request.get({ url: `/ai/tool/get?id=` + id }) + }, + + // 新增工具 + createTool: async (data: ToolVO) => { + return await request.post({ url: `/ai/tool/create`, data }) + }, + + // 修改工具 + updateTool: async (data: ToolVO) => { + return await request.put({ url: `/ai/tool/update`, data }) + }, + + // 删除工具 + deleteTool: async (id: number) => { + return await request.delete({ url: `/ai/tool/delete?id=` + id }) + } +} diff --git a/src/views/ai/model/tool/ToolForm.vue b/src/views/ai/model/tool/ToolForm.vue new file mode 100644 index 00000000..bec59617 --- /dev/null +++ b/src/views/ai/model/tool/ToolForm.vue @@ -0,0 +1,112 @@ + + diff --git a/src/views/ai/model/tool/index.vue b/src/views/ai/model/tool/index.vue new file mode 100644 index 00000000..5b927f1a --- /dev/null +++ b/src/views/ai/model/tool/index.vue @@ -0,0 +1,176 @@ + + +