VehicleServiceClient.java
1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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;
import java.util.List;
/**
* Vehicle feign
*
* @author yangll
*/
@FeignClient(name = "ne-shield-standard-interfaces", path = "/nesi/vehicle", fallbackFactory = VehicleServiceFallbackFactory.class, decode404 = true)
public interface VehicleServiceClient {
/**
* 通过设备号获取车辆信息
*
* @param sn
* @return
*/
@GetMapping(value = "/bysn")
R<VehicleDto> getVehicleBySn(@RequestParam String sn);
/**
* 验证设备组合接口
*
* @param verifyBO
* @return
*/
@PostMapping(value = "/verifyDevicesCompose")
R verifyDevicesCompose(@RequestBody DevicesComposeVerifyBO verifyBO);
/**
* 通过车架号和姓名获取车辆信息
*
* @param vin 车架号
* @param name 姓名
* @return
*/
@GetMapping(value = "/getVehicleByVinAndName")
R<List<VehicleDto>> getVehicleByVinAndName(@RequestParam String vin, @RequestParam String name);
}