| | |
| | | |
| | | import com.ruoyi.chargingPile.api.factory.ChargingGunFallbackFactory; |
| | | import com.ruoyi.chargingPile.api.model.TChargingGun; |
| | | import com.ruoyi.chargingPile.api.model.TFaultMessage; |
| | | import com.ruoyi.chargingPile.api.model.TChargingPile; |
| | | import com.ruoyi.chargingPile.api.vo.GetChargingGunByCode; |
| | | import com.ruoyi.chargingPile.api.vo.SiteNameVO; |
| | | import com.ruoyi.common.core.constant.ServiceNameConstants; |
| | |
| | | */ |
| | | @FeignClient(contextId = "ChargingGunClient", value = ServiceNameConstants.CHARGINGPILE_SERVICE, fallbackFactory = ChargingGunFallbackFactory.class) |
| | | public interface ChargingGunClient { |
| | | /** |
| | | * 获取所有枪 |
| | | * @return |
| | | */ |
| | | @PostMapping("/t-charging-gun/getAllGun") |
| | | R<List<TChargingGun>> getAllGun(); |
| | | /** |
| | | * 获取所有桩 |
| | | * @return |
| | | */ |
| | | @PostMapping("/t-charging-gun/getAllPile") |
| | | R<List<TChargingPile>> getAllPile(); |
| | | |
| | | /** |
| | | * 根据id获取充电枪完整名称 |
| | |
| | | */ |
| | | @PostMapping("/t-charging-gun/getChargingGunById/{id}") |
| | | R<TChargingGun> getChargingGunById(@PathVariable("id") Integer id); |
| | | |
| | | |
| | | /** |
| | | * 通过枪id获取站点、桩、枪的名称VO |
| | |
| | | */ |
| | | @PostMapping("/t-charging-gun/pushChargingGunStatus") |
| | | R pushChargingGunStatus(@RequestParam("id") Integer id, @RequestParam("status") Integer status); |
| | | |
| | | |
| | | |
| | | /** |
| | | * 根据枪唯一码查询信息 |
| | | * @return |
| | | */ |
| | | @PostMapping("/t-charging-gun/getChargingGunByFullNumber") |
| | | R<TChargingGun> getChargingGunByFullNumber(@RequestParam("fullNumber") String fullNumber); |
| | | |
| | | /** |
| | | * 大屏 根据站点ids和充电模式集合查询充电枪集合 |
| | | */ |
| | | @GetMapping("/t-charging-gun/getGunIdsBySiteIdsAndChargeModels") |
| | | R<List<Integer>> getGunIdsBySiteIdsAndChargeModels(@RequestParam("siteIds") List<Integer> siteIds ,@RequestParam("chargeModels") List<Integer> chargeModels); |
| | | } |