You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

49 lines
896 B

// src/api/graph.js
import request from '@/utils/request';
/**
* 获取测试图谱数据(固定返回 Disease 及其所有关系)
* 后端接口:GET /test (无参数)
*/
export function getTestGraphData() {
return request({
url: '/api/getData',
method: 'get'
});
}
export function preload() {
return request({
url: '/api/preload',
method: 'get'
});
}
export function getCount() {
return request({
url: '/api/getCount',
method: 'get'
});
}
export function getGraph(data) {
return request({
url: '/api/getGraph',
method: 'post',
data
});
}
export function getDrugTree() {
return request({
url: '/api/drug-tree',
method: 'get'
});
}
export function getCheckTree() {
return request({
url: '/api/check-tree',
method: 'get'
});
}