import request from "@/utils/request";

export function searchFundGraphSubjects(query) {
  return request({
    url: "/ccdi/project/fund-graph/search",
    method: "get",
    params: query,
  });
}

export function getFundGraph(query) {
  return request({
    url: "/ccdi/project/fund-graph/graph",
    method: "get",
    params: query,
  });
}

export function getFundGraphEdgeDetail(query) {
  return request({
    url: "/ccdi/project/fund-graph/edge-detail",
    method: "get",
    params: query,
  });
}

export function saveFundGraphManualEdge(data) {
  return request({
    url: "/ccdi/project/fund-graph/manual-edge",
    method: "post",
    data,
  });
}
