| | |
| | | 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.vo.GetChargingGunByChargingPileIdsVo; |
| | | import com.ruoyi.chargingPile.api.vo.GetChargingGunByCode; |
| | | import com.ruoyi.chargingPile.api.vo.SiteNameVO; |
| | | import com.ruoyi.common.core.constant.ServiceNameConstants; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | |
| | |
| | | */ |
| | | @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); |
| | | |
| | | |
| | | |