xiangpei
2024-04-18 599d076ba86b98c1c47a17c1ebaa57619ec26150
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));
    }