Browse Source

agbox模块api文件调整

hanzhengyi 1 year ago
parent
commit
6b1ce4b7c4

+ 4 - 4
service-agbox/service-agbox-api/src/main/java/com/usky/agbox/RemotepatrolAgboxService.java

@@ -1,7 +1,7 @@
 package com.usky.agbox;
 
 import com.alibaba.fastjson.JSONObject;
-import com.usky.agbox.factory.RemotePatrolAgboxFallbackFactory;
+import com.usky.agbox.factory.RemotePatrolAgBoxFallbackFactory;
 import org.springframework.cloud.openfeign.FeignClient;
 import org.springframework.web.bind.annotation.GetMapping;
 import org.springframework.web.bind.annotation.PostMapping;
@@ -11,9 +11,9 @@ import org.springframework.web.bind.annotation.RequestBody;
  * @author han
  * @date 2024/04/02 15:07
  */
-@FeignClient(contextId = "remotePatrolAgboxService", value = "service-agbox", fallbackFactory =
-        RemotePatrolAgboxFallbackFactory.class)
-public interface RemotePatrolAgboxService {
+@FeignClient(contextId = "remotePatrolAgBoxService", value = "service-agbox", fallbackFactory =
+        RemotePatrolAgBoxFallbackFactory.class)
+public interface RemotePatrolAgBoxService {
     /**
      * 获得事件编码
      *

+ 5 - 5
service-agbox/service-agbox-api/src/main/java/com/usky/agbox/factory/RemotepatrolAgboxFallbackFactory.java

@@ -1,7 +1,7 @@
 package com.usky.agbox.factory;
 
 import com.alibaba.fastjson.JSONObject;
-import com.usky.agbox.RemotePatrolAgboxService;
+import com.usky.agbox.RemotePatrolAgBoxService;
 import com.usky.common.core.exception.FeignBadRequestException;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
@@ -13,14 +13,14 @@ import org.springframework.stereotype.Component;
  * @date 2024/04/02 15:07
  */
 @Component
-public class RemotePatrolAgboxFallbackFactory implements FallbackFactory<RemotePatrolAgboxService> {
-    private static final Logger log = LoggerFactory.getLogger(RemotePatrolAgboxFallbackFactory.class);
+public class RemotePatrolAgBoxFallbackFactory implements FallbackFactory<RemotePatrolAgBoxService> {
+    private static final Logger log = LoggerFactory.getLogger(RemotePatrolAgBoxFallbackFactory.class);
 
     @Override
-    public RemotePatrolAgboxService create(Throwable throwable)
+    public RemotePatrolAgBoxService create(Throwable throwable)
     {
         log.error("agbox服务调用失败:{}", throwable.getMessage());
-        return new RemotePatrolAgboxService()
+        return new RemotePatrolAgBoxService()
         {
             @Override
             public JSONObject getEventCode() {