VehicleDeviceClient.java
1.84 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
51
52
53
54
55
56
57
58
59
60
61
62
package cn.com.glsx.stdinterface.api;
import cn.com.glsx.stdinterface.dto.SxjSearchDTO;
import cn.com.glsx.stdinterface.dto.VehicleDeviceDto;
import cn.com.glsx.stdinterface.dto.VehicleDto;
import cn.com.glsx.stdinterface.factory.VehicleDeviceFallbackFactory;
import com.github.pagehelper.PageInfo;
import com.glsx.plat.core.web.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* Vehicle feign
*
* @author yangll
*/
@FeignClient(name = "ne-shield-standard-interfaces", path = "/nesi/vehicledevice", fallbackFactory = VehicleDeviceFallbackFactory.class, decode404 = true)
public interface VehicleDeviceClient {
/**
* 通过设备号获取车辆设备绑定关系
*
* @param sn 设备号
* @return
*/
@GetMapping(value = "/getVehicleDeviceBySn")
R<VehicleDeviceDto> getVehicleDeviceBySn(@RequestParam String sn);
@PostMapping(value = "/pushSXJData")
R<Boolean> pushSXJData(@RequestParam String date);
/**
* 推送思享驾围栏报警数据
* @param date
* @return
*/
@GetMapping(value = "/pushSXJAlarmElectricFence")
R<Boolean> pushSXJAlarmElectricFence(@RequestParam(required = false) String date);
/**
* 推送思享驾设备分离报警数据
* @param date
* @return
*/
@GetMapping(value = "/pushSXJDeviceSeparationAlarmData")
R<Boolean> pushSXJDeviceSeparationAlarmData(@RequestParam(required = false) String date);
/**
* 分页查询思想驾商户设备号列表
* @return
*/
@GetMapping(value = "/listSXJSnList")
@ResponseBody
R<PageInfo<VehicleDto>> listSXJSnList(@RequestBody SxjSearchDTO param);
@PostMapping(value = "/pushSXJOfflineAlarmData")
R<Boolean> pushSXJOfflineAlarmData(@RequestParam(required = false) String date);
}