| | |
| | | |
| | | 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.GetChargingGunByCode; |
| | | import com.ruoyi.chargingPile.api.vo.SiteNameVO; |
| | |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | |
| | | 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/getAllGun") |
| | | R<List<TChargingGun>> getAllGun(); |
| | | /** |
| | | * 获取所有桩 |
| | | * @return |
| | | */ |
| | | @PostMapping("/t-charging-gun/getAllPile") |
| | | R<List<TChargingPile>> getAllPile(); |
| | | |
| | | /** |
| | | * 根据id获取充电枪完整名称 |