12345678910111213141516171819202122232425262728293031323334353637 |
- 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 })
- }
- }
|