From 0275498af38bc1c8fbc5bfea54f3cce3550fd6ab Mon Sep 17 00:00:00 2001 From: puzhibing <393733352@qq.com> Date: 星期二, 11 二月 2025 09:57:54 +0800 Subject: [PATCH] Merge branch 'master' of http://120.76.84.145:10101/gitblit/r/java/mx_charging_pile into 1.1 --- ruoyi-api/ruoyi-api-chargingPile/src/main/java/com/ruoyi/chargingPile/api/factory/ChargingGunFallbackFactory.java | 31 ++++++++++++++++++++++++++++++- 1 files changed, 30 insertions(+), 1 deletions(-) diff --git a/ruoyi-api/ruoyi-api-chargingPile/src/main/java/com/ruoyi/chargingPile/api/factory/ChargingGunFallbackFactory.java b/ruoyi-api/ruoyi-api-chargingPile/src/main/java/com/ruoyi/chargingPile/api/factory/ChargingGunFallbackFactory.java index 11c4cb6..e912626 100644 --- a/ruoyi-api/ruoyi-api-chargingPile/src/main/java/com/ruoyi/chargingPile/api/factory/ChargingGunFallbackFactory.java +++ b/ruoyi-api/ruoyi-api-chargingPile/src/main/java/com/ruoyi/chargingPile/api/factory/ChargingGunFallbackFactory.java @@ -29,7 +29,17 @@ public ChargingGunClient create(Throwable throwable) { log.error("充电枪调用失败:{}", throwable.getMessage()); return new ChargingGunClient() { - + + @Override + public R<List<TChargingGun>> getAllGun() { + return null; + } + + @Override + public R<List<TChargingPile>> getAllPile() { + return null; + } + @Override public R<String> getAllName(Integer id) { return R.fail("根据id获取充电枪完整名称失败:" + throwable.getMessage()); @@ -54,7 +64,26 @@ public R<String> updateChargingGunById(TChargingGun chargingGun) { return R.fail("编辑充电枪失败:" + throwable.getMessage()); } + + @Override + public R<List<TChargingGun>> getChargingGunByChargingPileId(Integer chargingPileId) { + return R.fail("根据充电桩id获取枪失败:" + throwable.getMessage()); + } + + @Override + public R<List<TChargingGun>> getChargingGunByChargingPileIds(List<Integer> chargingPileIds) { + return R.fail("根据充电桩ids获取枪失败:" + throwable.getMessage()); + } + + @Override + public R pushChargingGunStatus(Integer id, Integer status) { + return R.fail("接口状态变化后推送给第三方失败:" + throwable.getMessage()); + } + @Override + public R<TChargingGun> getChargingGunByFullNumber(String fullNumber) { + return R.fail("根据枪唯一码查询信息失败:" + throwable.getMessage()); + } }; } } -- Gitblit v1.7.1