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.
24 lines
568 B
24 lines
568 B
|
|
// src/api/graph.js
|
|
import request from '@/utils/request';
|
|
|
|
/**
|
|
* 获取测试图谱数据(固定返回 Disease 及其所有关系)
|
|
* 后端接口:GET /test (无参数)
|
|
*/
|
|
export function getTestGraphData() {
|
|
return request({
|
|
url: '/getData',
|
|
method: 'get'
|
|
// 注意:不传 params!因为后端不接收也不需要
|
|
});
|
|
}
|
|
|
|
export function getGraph(data) {
|
|
return request({
|
|
url: '/getGraph',
|
|
method: 'post',
|
|
data
|
|
// 注意:不传 params!因为后端不接收也不需要
|
|
});
|
|
}
|