Browse Source

更新删除图谱对接接口

zhoutg 5 years ago
parent
commit
44c4d22fde

+ 2 - 2
knowledgeman-service/src/main/java/com/diagbot/client/NeoServiceClient.java

@@ -9,8 +9,8 @@ import org.springframework.web.bind.annotation.RequestBody;
 
 
 /**
- * @Description: 图谱更新服务
- * @author: gaodm
+ * @Description: 图谱服务
+ * @author: zhoutg
  * @time: 2018/8/6 9:52
  */
 @FeignClient(name = "neo", url = "${neo.server.address}", fallback = NeoServiceHystrix.class)

+ 8 - 12
knowledgeman-service/src/main/java/com/diagbot/client/hystrix/NeoServiceHystrix.java

@@ -2,34 +2,30 @@ package com.diagbot.client.hystrix;
 
 import com.diagbot.client.NeoServiceClient;
 import com.diagbot.dto.RespDTO;
-import com.diagbot.entity.Token;
+import com.diagbot.vo.NeoParamVO;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.stereotype.Component;
-import org.springframework.web.bind.annotation.RequestBody;
-
-import java.util.List;
-import java.util.Map;
 
 
 /**
- * @Description: 调用用户服务
- * @author: gaodm
+ * @Description: 图谱服务
+ * @author: zhoutg
  * @time: 2018/8/6 9:52
  */
 @Component
 @Slf4j
 public class NeoServiceHystrix implements NeoServiceClient {
 
+
     @Override
-    public RespDTO<Map<String, String>> getUserInfoByIds(@RequestBody List<String> ids) {
-        log.error("【hystrix】调用{}异常", "getUserInfoByIds");
+    public RespDTO<Boolean> updateNeo(NeoParamVO neoParamVO) {
+        log.error("【hystrix】调用{}异常", "updateNeo");
         return null;
     }
 
     @Override
-    public RespDTO<Boolean> verifyToken(Token token) {
-        log.error("【hystrix】调用{}异常", "verifyToken");
+    public RespDTO<Boolean> deleteNeo(NeoParamVO neoParamVO) {
+        log.error("【hystrix】调用{}异常", "deleteNeo");
         return null;
     }
-
 }