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.

23 lines
437 B

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