You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
fu-hsi-service/src/main/java/com/supervision/neo4j/service/Neo4jService.java

66 lines
1.6 KiB
Java

10 months ago
package com.supervision.neo4j.service;
import com.supervision.common.domain.R;
import com.supervision.neo4j.domain.CaseNode;
import com.supervision.neo4j.domain.Rel;
import org.neo4j.driver.Record;
import com.supervision.police.vo.GraphReqVO;
10 months ago
import java.util.List;
import java.util.Map;
10 months ago
/**
* @author qmy
* @since 2023-10-26
*/
public interface Neo4jService {
CaseNode save(CaseNode caseNode);
10 months ago
void delNode(Long id);
9 months ago
/**
*
*/
void deleteNoRelationNode(Long id);
void deleteRel(Long relId);
10 months ago
CaseNode findById(Long id);
List<CaseNode> findByName(String caseId, String recordId, String nodeType, String name, String picType);
10 months ago
CaseNode findOneByName(String caseId, String recordId, String nodeType, String name, String picType);
Rel findRelation(Rel rel);
9 months ago
Rel saveRelation(Rel rel);
10 months ago
/**
*
*
* @param graphReqVO
* @return
*/
R<?> getCaseGraph(GraphReqVO graphReqVO);
10 months ago
/**
*
*
* @param picType
* @param caseId id
* @return
*/
R<?> getNodeAndRelationListByCaseId(String picType, String caseId);
10 months ago
// R<?> test();
void deleteAbstractGraph();
void createAbstractGraph(String path, String sheetName);
void mockTestGraph(String path, String sheetName, String recordId, String recordSplitId, String caseId);
List<Record> executeCypher(String cypher, Map<String, Object> parameters);
10 months ago
}