| | |
| | | import com.ruoyi.chargingPile.api.factory.ChargingGunFallbackFactory; |
| | | import com.ruoyi.chargingPile.api.model.TChargingGun; |
| | | import com.ruoyi.chargingPile.api.model.TChargingPile; |
| | | import com.ruoyi.chargingPile.api.model.TFaultMessage; |
| | | import com.ruoyi.chargingPile.api.vo.GetChargingGunByChargingPileIdsVo; |
| | | import com.ruoyi.chargingPile.api.vo.GetChargingGunByCode; |
| | | import com.ruoyi.chargingPile.api.vo.SiteNameVO; |
| | | import com.ruoyi.common.core.constant.ServiceNameConstants; |
| | |
| | | |
| | | import java.util.List; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author zhibing.pu |
| | | * @Date 2024/8/15 19:36 |
| | | */ |
| | | @FeignClient(contextId = "ChargingGunClient", value = ServiceNameConstants.CHARGINGPILE_SERVICE, fallbackFactory = ChargingGunFallbackFactory.class) |
| | | public interface ChargingGunClient { |
| | | /** |
| | | * 新增临时枪 |
| | | * @return |
| | | */ |
| | | @PostMapping("/t-charging-gun/addGunTemp") |
| | | @ResponseBody |
| | | R<Integer> addGunTemp(@RequestBody TChargingGun gun); |
| | | /** |
| | | * 获取所有枪 |
| | | * @return |
| | |
| | | */ |
| | | @PostMapping("/t-charging-gun/getChargingGunById/{id}") |
| | | R<TChargingGun> getChargingGunById(@PathVariable("id") Integer id); |
| | | |
| | | @PostMapping("/t-charging-gun/getChargingGunByIds") |
| | | R<List<TChargingGun>> getChargingGunByIds(@RequestBody List<Integer> ids); |
| | | |
| | | |
| | | /** |
| | |
| | | |
| | | /** |
| | | * 根据充电桩ids获取枪 |
| | | * @param chargingPileIds |
| | | * @return |
| | | */ |
| | | @PostMapping("/t-charging-gun/getChargingGunByChargingPileIds") |
| | | R<List<TChargingGun>> getChargingGunByChargingPileIds(@RequestParam("chargingPileIds") List<Integer> chargingPileIds); |
| | | R<List<TChargingGun>> getChargingGunByChargingPileIds(@RequestBody GetChargingGunByChargingPileIdsVo vo); |
| | | |
| | | |
| | | |
| | |
| | | */ |
| | | @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); |
| | | } |