大屏气象设备实时数据接口
This commit is contained in:
@ -0,0 +1,20 @@
|
||||
package com.fastbee.data.controller.deviceData;
|
||||
|
||||
import com.fastbee.common.core.domain.AjaxResult;
|
||||
import com.fastbee.deviceData.service.impl.DeviceRealtimedataMeteorologyServiceImpl;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@RestController()
|
||||
@RequestMapping("/meteorology")
|
||||
public class DeviceRealtimedataMeteorologyController {
|
||||
|
||||
@Autowired
|
||||
private DeviceRealtimedataMeteorologyServiceImpl deviceRealtimedataMeteorologyService;
|
||||
@GetMapping(value = "/weather/realtimedata")
|
||||
public AjaxResult getLatestWeatherRealtimedata() {
|
||||
return AjaxResult.success(deviceRealtimedataMeteorologyService.getLatestWeatherRealtimedata());
|
||||
}
|
||||
}
|
@ -22,4 +22,5 @@ public class RenKeUserDeviceOverviewController {
|
||||
public AjaxResult getsysAllUserDevice(){
|
||||
return AjaxResult.success(renkeUserDeviceOverview.getsysAllUserDevice());
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user