From 6a5f0032e2903c64966a68dd3639b049c7a40b85 Mon Sep 17 00:00:00 2001
From: zxl <763096477@qq.com>
Date: 星期一, 28 四月 2025 09:21:48 +0800
Subject: [PATCH] 手册,海康接口调整
---
ycl-server/src/main/java/com/ycl/platform/controller/TMonitorController.java | 14 +++++++++++---
1 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/ycl-server/src/main/java/com/ycl/platform/controller/TMonitorController.java b/ycl-server/src/main/java/com/ycl/platform/controller/TMonitorController.java
index 32d1f22..48f4102 100644
--- a/ycl-server/src/main/java/com/ycl/platform/controller/TMonitorController.java
+++ b/ycl-server/src/main/java/com/ycl/platform/controller/TMonitorController.java
@@ -83,7 +83,7 @@
/**
* 鑾峰彇璁惧璧勪骇璇︾粏淇℃伅
*/
- @PreAuthorize("@ss.hasPermi('system:monitor:query')")
+ @PreAuthorize("@ss.hasPermi('system:monitor:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
@@ -93,7 +93,7 @@
/**
* 鏂板璁惧璧勪骇
*/
- @PreAuthorize("@ss.hasPermi('system:monitor:add')")
+ @PreAuthorize("@ss.hasPermi('system:monitor:add')")
@Log(title = "璁惧璧勪骇", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody TMonitor tMonitor)
@@ -142,6 +142,14 @@
{
return success(tMonitorService.recoveryException(monitor));
}
-
+ /**
+ * 瀵煎嚭
+ */
+ @PreAuthorize("@ss.hasPermi('system:monitor:export')")
+ @Log(title = "瀵煎嚭", businessType = BusinessType.EXPORT)
+ @PostMapping("/export")
+ public void export(HttpServletResponse response,TMonitorVO tMonitor) throws IOException, NoSuchFieldException, IllegalAccessException {
+ tMonitorService.export(response,tMonitor);
+ }
}
--
Gitblit v1.8.0