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.

50 lines
896 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
}
3 months ago
export function preload() {
return request({
url: '/api/preload',
method: 'get'
});
}
3 months ago
export function getCount() {
return request({
url: '/api/getCount',
method: 'get'
3 months ago
3 months ago
});
}
3 months ago
export function getGraph(data) {
return request({
3 months ago
url: '/api/getGraph',
3 months ago
method: 'post',
data
});
3 months ago
}
export function getDrugTree() {
return request({
url: '/api/drug-tree',
method: 'get'
});
}
export function getCheckTree() {
return request({
url: '/api/check-tree',
method: 'get'
});
}