import request from '@/utils/request'

// 查询知识库列表
export function listKnowledge(query) {
  return request({
    url: '/system/knowledge/list',
    method: 'get',
    params: query
  })
}

// 创建知识库
export function addKnowledge(data) {
  return request({
    url: '/system/knowledge/add',
    method: 'post',
    data: data
  })
}

// 修改知识库
export function updateKnowledge(data) {
  return request({
    url: '/system/knowledge/update',
    method: 'post',
    data: data
  })
}

// 删除知识库
export function delKnowledge(data) {
  return request({
    url: '/system/knowledge/delete',
    method: 'post',
    data: data
  })
}
