longz
2026-07-18 9c3aae72bb1faf4cedcc8f91b5a53f0bf2c4f91a
ruoyi-api/ruoyi-api-chargingPile/src/main/java/com/ruoyi/chargingPile/api/feignClient/ChargingGunClient.java
@@ -3,15 +3,13 @@
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;
@@ -21,6 +19,13 @@
 */
@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
@@ -50,6 +55,9 @@
    */
   @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);
   
   /**
@@ -86,11 +94,10 @@
   
   /**
    * 根据充电桩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);