entityManage.js 789 B

12345678910111213141516171819202122232425262728293031
  1. import { get, post } from '@/http/index'
  2. //查询所有实体
  3. export const getEntityList = async (data) => {
  4. return await get('/kgqa/entity/getAllEntities', data)
  5. }
  6. // 获取图数据库中的所有实体类名称
  7. export const getAllEntityClass = async () => {
  8. return await get('/kgqa/entity/getAllEntityClass')
  9. }
  10. // 新增实体结点
  11. export const addEntity = async (data) => {
  12. return await post('/kgqa/entity/add', data)
  13. }
  14. //修改实体结点
  15. export const updateEntity = async (data) => {
  16. return await post('/kgqa/entity/update', data)
  17. }
  18. //查询实体结点
  19. export const checkEntity = async (data) => {
  20. return await post('/kgqa/entity/Check', data)
  21. }
  22. //删除实体结点
  23. export const deleteEntity = async (data) => {
  24. return await post('/kgqa/entity/delete', data)
  25. }