| | |
| | | * @date 2024-03-25 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/ycl/threshold") |
| | | @RequestMapping("/threshold") |
| | | public class YwThresholdController extends BaseController { |
| | | @Autowired |
| | | private IYwThresholdService ywThresholdService; |
| | |
| | | } |
| | | |
| | | /** |
| | | * 获取人脸配置 |
| | | */ |
| | | // @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')") |
| | |
| | | */ |
| | | // @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)); |
| | | } |