Commit a1aa7b36 by 杨林龙

添加feign参数注解

1 parent cc93a3a7
...@@ -40,16 +40,18 @@ public interface DeviceFeignService { ...@@ -40,16 +40,18 @@ public interface DeviceFeignService {
* @return * @return
*/ */
@GetMapping(value = "/getDeviceStatusBySn") @GetMapping(value = "/getDeviceStatusBySn")
R<DeviceStatusModel> getDeviceStatusBySn(@RequestParam(value = "sn") String sn, Long offlineTime); R<DeviceStatusModel> getDeviceStatusBySn(@RequestParam(value = "sn") String sn, @RequestParam(value = "offlineTime", required = false) Long offlineTime);
/** /**
* 批量获取设备状态 * 批量获取设备状态
*
* @param sns * @param sns
* @param offlineTime 单位毫秒 * @param offlineTime 单位毫秒
* @return * @return
*/ */
@PostMapping(value = "listDeviceStatusBySns") @PostMapping(value = "listDeviceStatusBySns")
R<List<DeviceStatusModel>> listDeviceStatusBySns(@RequestParam(value = "sns") Collection<String> sns, Long offlineTime); R<List<DeviceStatusModel>> listDeviceStatusBySns(@RequestParam(value = "sns") Collection<String> sns, @RequestParam(value = "offlineTime", required = false) Long offlineTime);
/** /**
* 获取设备上点总个数 * 获取设备上点总个数
* *
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!