package com.ruoyi.chargingPile.api.feignClient;
|
|
import com.ruoyi.chargingPile.api.factory.ChargingGunFallbackFactory;
|
import com.ruoyi.chargingPile.api.model.TChargingGun;
|
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.GetMapping;
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
/**
|
* @author zhibing.pu
|
* @Date 2024/8/15 19:36
|
*/
|
@FeignClient(contextId = "ChargingGunClient", value = ServiceNameConstants.CHARGINGPILE_SERVICE, fallbackFactory = ChargingGunFallbackFactory.class)
|
public interface ChargingGunClient {
|
|
/**
|
* 根据id获取充电枪完整名称
|
* @param id
|
* @return
|
*/
|
@PostMapping("/t-charging-gun/getAllName")
|
R<String> getAllName(Integer id);
|
|
|
/**
|
* 根据id获取充电枪
|
* @param id
|
* @return
|
*/
|
@PostMapping("/t-charging-gun/getChargingGunById")
|
R<TChargingGun> getChargingGunById(Integer id);
|
}
|