VehicleServiceClient.java
1.14 KB
package cn.com.glsx.stdinterface.api;
import cn.com.glsx.stdinterface.dto.DevicesComposeVerifyBO;
import cn.com.glsx.stdinterface.dto.VehicleDto;
import cn.com.glsx.stdinterface.factory.VehicleServiceFallbackFactory;
import com.glsx.plat.core.web.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
@FeignClient(name = "ne-shield-standard-interfaces", path = "/nesi/vehicle",
fallbackFactory = VehicleServiceFallbackFactory.class, decode404 = true)
public interface VehicleServiceClient {
/**
* 通过设备号获取车辆信息
*
* @param sn
* @return
*/
@GetMapping(value = "/bysn")
public R<VehicleDto> getVehicleBySn(@RequestParam String sn);
/**
* 验证设备组合接口
*
* @param verifyBO
* @return
*/
@PostMapping(value = "/verifyDevicesCompose")
public R verifyDevicesCompose(@RequestBody DevicesComposeVerifyBO verifyBO);
}