From 599d076ba86b98c1c47a17c1ebaa57619ec26150 Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期四, 18 四月 2024 11:51:00 +0800
Subject: [PATCH] 阈值详情、字段修改

---
 ycl-server/src/main/java/com/ycl/platform/controller/YwThresholdController.java |   31 +++++++++++++++++++++++++++++--
 1 files changed, 29 insertions(+), 2 deletions(-)

diff --git a/ycl-server/src/main/java/com/ycl/platform/controller/YwThresholdController.java b/ycl-server/src/main/java/com/ycl/platform/controller/YwThresholdController.java
index f314698..8feb6f7 100644
--- a/ycl-server/src/main/java/com/ycl/platform/controller/YwThresholdController.java
+++ b/ycl-server/src/main/java/com/ycl/platform/controller/YwThresholdController.java
@@ -26,7 +26,7 @@
  * @date 2024-03-25
  */
 @RestController
-@RequestMapping("/ycl/threshold")
+@RequestMapping("/threshold")
 public class YwThresholdController extends BaseController {
     @Autowired
     private IYwThresholdService ywThresholdService;
@@ -64,6 +64,33 @@
     }
 
     /**
+     * 鑾峰彇浜鸿劯閰嶇疆
+     */
+    // @PreAuthorize("@ss.hasPermi('ycl:threshold:query')")
+    @GetMapping(value = "/face/{id}")
+    public AjaxResult getFace(@PathVariable("id") Integer id) {
+        return success(ywThresholdService.getFace(id));
+    }
+
+    /**
+     * 鑾峰彇杞﹁締閰嶇疆
+     */
+    // @PreAuthorize("@ss.hasPermi('ycl:threshold:query')")
+    @GetMapping(value = "/car/{id}")
+    public AjaxResult getCar(@PathVariable("id") Integer id) {
+        return success(ywThresholdService.getCar(id));
+    }
+
+    /**
+     * 鑾峰彇瑙嗛閰嶇疆
+     */
+    // @PreAuthorize("@ss.hasPermi('ycl:threshold:query')")
+    @GetMapping(value = "/video/{id}")
+    public AjaxResult getVideo(@PathVariable("id") Integer id) {
+        return success(ywThresholdService.getVideo(id));
+    }
+
+    /**
      * 淇敼浜鸿劯闃堝��
      */
     // @PreAuthorize("@ss.hasPermi('ycl:threshold:edit')")
@@ -88,7 +115,7 @@
      */
     // @PreAuthorize("@ss.hasPermi('ycl:threshold:edit')")
     @Log(title = "淇敼瑙嗛闃堝��", businessType = BusinessType.UPDATE)
-    @PutMapping("video")
+    @PutMapping("/video")
     public AjaxResult editVideo(@RequestBody @Validated VideoThresholdForm form) {
         return toAjax(ywThresholdService.editVideo(form));
     }

--
Gitblit v1.8.0