|
@@ -9,6 +9,7 @@ import io.swagger.v3.oas.annotations.tags.Tag;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
+import javax.annotation.security.PermitAll;
|
|
|
import javax.validation.Valid;
|
|
|
|
|
|
import java.util.List;
|
|
@@ -18,7 +19,7 @@ import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
|
|
|
|
|
|
@Tag(name = "设备管理 ")
|
|
|
@RestController
|
|
|
-@RequestMapping("/rq/deviceTest")
|
|
|
+@RequestMapping("/rq/deviceTD")
|
|
|
public class DeviceController {
|
|
|
@Autowired
|
|
|
private IDeviceService deviceService;
|
|
@@ -29,6 +30,7 @@ public class DeviceController {
|
|
|
////@PreAuthorize("@ss.hasPermi('iot:device:query')")
|
|
|
@GetMapping(value = "/runningSpanData")
|
|
|
@Operation(summary = "获取一段时间内的设备数据")
|
|
|
+ @PermitAll
|
|
|
public CommonResult<List<DeviceVO>> getRunningSpanDataInfo(@Valid DeviceVO device) {
|
|
|
return success(deviceService.selectBySpan(device));
|
|
|
}
|
|
@@ -39,6 +41,7 @@ public class DeviceController {
|
|
|
////@PreAuthorize("@ss.hasPermi('iot:device:query')")
|
|
|
@GetMapping(value = "/runningTsData")
|
|
|
@Operation(summary = "获取特定时间设备数据")
|
|
|
+ @PermitAll
|
|
|
public CommonResult<List<DeviceVO>> getRunningTsDataInfo(@Valid DeviceVO device) {
|
|
|
return success(deviceService.selectByTs(device));
|
|
|
}
|