Commit 895a538a by 杨林龙

优化熔断工厂类

1 parent b7424f3d
package cn.com.glsx.stdinterface.api; package cn.com.glsx.stdinterface.api;
import cn.com.glsx.stdinterface.dto.DevicePowerDTO; import cn.com.glsx.stdinterface.dto.DevicePowerDTO;
import cn.com.glsx.stdinterface.factory.FreqRecordFallbackFactory; import cn.com.glsx.stdinterface.factory.BatteryFallbackFactory;
import com.glsx.plat.core.web.R; import com.glsx.plat.core.web.R;
import org.springframework.cloud.openfeign.FeignClient; import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
...@@ -15,7 +15,7 @@ import java.util.List; ...@@ -15,7 +15,7 @@ import java.util.List;
* @author xiangyanlin * @author xiangyanlin
* @date 2022/4/12 * @date 2022/4/12
*/ */
@FeignClient(name = "ne-shield-standard-interfaces", path = "/nesi/battery", fallbackFactory = FreqRecordFallbackFactory.class, decode404 = true) @FeignClient(name = "ne-shield-standard-interfaces", path = "/nesi/battery", fallbackFactory = BatteryFallbackFactory.class, decode404 = true)
public interface BatteryClient { public interface BatteryClient {
......
package cn.com.glsx.stdinterface.api; package cn.com.glsx.stdinterface.api;
import cn.com.glsx.stdinterface.dto.RouteOilMileageDto; import cn.com.glsx.stdinterface.dto.RouteOilMileageDto;
import cn.com.glsx.stdinterface.factory.StatisticsDriveFallbackFactory; import cn.com.glsx.stdinterface.factory.RouteOilMileageFallbackFactory;
import com.glsx.plat.core.web.R; import com.glsx.plat.core.web.R;
import org.springframework.cloud.openfeign.FeignClient; import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
...@@ -12,7 +12,7 @@ import org.springframework.web.bind.annotation.RequestParam; ...@@ -12,7 +12,7 @@ import org.springframework.web.bind.annotation.RequestParam;
import java.util.Collection; import java.util.Collection;
import java.util.List; import java.util.List;
@FeignClient(name = "ne-shield-standard-interfaces", path = "/nesi/routeoilmileage", fallbackFactory = StatisticsDriveFallbackFactory.class, decode404 = true) @FeignClient(name = "ne-shield-standard-interfaces", path = "/nesi/routeoilmileage", fallbackFactory = RouteOilMileageFallbackFactory.class, decode404 = true)
public interface RouteOilMileageClient { public interface RouteOilMileageClient {
/** /**
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!