12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- import { get, post, deletes, put } from '@/http/index'
- // 查看抽取任务列表
- export const getTaskList = async (data) => {
- return await get('/als/kGraphTask/list', data)
- }
- // 新增任务
- export const addTask = async (data) => {
- return await post('/als/kGraphTask', data)
- }
- // 修改任务
- export const updateTask = async (data) => {
- // return await put('/als/lifePrediction', data)
- }
- // 删除任务
- export const removeTask = async (id) => {
- // return await deletes('/als/lifePrediction/' + id)
- }
- // 获取文件信息
- export const getTaskInfo = async (id) => {
- return await get('/als/kGraphTask/' + id)
- }
- // 执行知识图谱的类型
- export const taskPro = async (data) => {
- return await post('/als/kGraphTask/pro', data)
- }
- // 获取分句列表
- export const getClauseList = async (data) => {
- // return await post('/kgqa/ask/', data)
- }
- // 修改知识抽取
- export const updateClause = async (data) => {
- // return await put('/als/lifePrediction', data)
- }
- // 删除知识抽取
- export const removeClause = async (id) => {
- // return await deletes('/als/lifePrediction/' + id)
- }
|