| | |
| | | import com.ruoyi.integration.api.feignClient.SendMessageClient; |
| | | import com.ruoyi.integration.api.model.ChargingHandshake; |
| | | import com.ruoyi.integration.api.model.PlatformStartCharging; |
| | | import com.ruoyi.integration.api.model.PlatformStopCharging; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.cloud.openfeign.FallbackFactory; |
| | |
| | | |
| | | |
| | | @Override |
| | | public void platformStartCharging(PlatformStartCharging platformStartCharging) { |
| | | public String platformStartCharging(PlatformStartCharging platformStartCharging) { |
| | | throw new RuntimeException("远程启机失败" + throwable.getMessage()); |
| | | } |
| | | |
| | | @Override |
| | | public String platformStopCharging(PlatformStopCharging platformStopCharging) { |
| | | throw new RuntimeException("远程停机失败" + throwable.getMessage()); |
| | | } |
| | | }; |
| | | } |
| | | } |