From 417d6f739ce71df6b6276d48c4addab601789ee6 Mon Sep 17 00:00:00 2001 From: 龚焕茏 <2842157468@qq.com> Date: 星期四, 18 四月 2024 16:25:15 +0800 Subject: [PATCH] 接口权限精确到按钮 --- ycl-server/src/main/java/com/ycl/platform/controller/TMonitorVideoController.java | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ycl-server/src/main/java/com/ycl/platform/controller/TMonitorVideoController.java b/ycl-server/src/main/java/com/ycl/platform/controller/TMonitorVideoController.java index 01de496..5a41f87 100644 --- a/ycl-server/src/main/java/com/ycl/platform/controller/TMonitorVideoController.java +++ b/ycl-server/src/main/java/com/ycl/platform/controller/TMonitorVideoController.java @@ -31,7 +31,7 @@ /** * 鏌ヨ璁惧璧勪骇鍒楄〃 */ -// @PreAuthorize("@ss.hasPermi('system:video:list')") + @PreAuthorize("@ss.hasPermi('system:video:list')") @GetMapping("/list") public TableDataInfo list(TMonitorVideo tMonitorVideo) { @@ -43,7 +43,7 @@ /** * 瀵煎嚭璁惧璧勪骇鍒楄〃 */ -// @PreAuthorize("@ss.hasPermi('system:video:export')") + @PreAuthorize("@ss.hasPermi('system:video:export')") @Log(title = "璁惧璧勪骇", businessType = BusinessType.EXPORT) @PostMapping("/export") public void export(HttpServletResponse response, TMonitorVideo tMonitorVideo) @@ -56,7 +56,7 @@ /** * 鑾峰彇璁惧璧勪骇璇︾粏淇℃伅 */ -// @PreAuthorize("@ss.hasPermi('system:video:query')") + @PreAuthorize("@ss.hasPermi('system:video:query')") @GetMapping(value = "/{id}") public AjaxResult getInfo(@PathVariable("id") Long id) { @@ -66,7 +66,7 @@ /** * 鏂板璁惧璧勪骇 */ -// @PreAuthorize("@ss.hasPermi('system:video:add')") + @PreAuthorize("@ss.hasPermi('system:video:add')") @Log(title = "璁惧璧勪骇", businessType = BusinessType.INSERT) @PostMapping public AjaxResult add(@RequestBody TMonitorVideo tMonitorVideo) @@ -77,7 +77,7 @@ /** * 淇敼璁惧璧勪骇 */ -// @PreAuthorize("@ss.hasPermi('system:video:edit')") + @PreAuthorize("@ss.hasPermi('system:video:edit')") @Log(title = "璁惧璧勪骇", businessType = BusinessType.UPDATE) @PutMapping public AjaxResult edit(@RequestBody TMonitorVideo tMonitorVideo) @@ -88,7 +88,7 @@ /** * 鍒犻櫎璁惧璧勪骇 */ -// @PreAuthorize("@ss.hasPermi('system:video:remove')") + @PreAuthorize("@ss.hasPermi('system:video:remove')") @Log(title = "璁惧璧勪骇", businessType = BusinessType.DELETE) @DeleteMapping("/{ids}") public AjaxResult remove(@PathVariable Long[] ids) -- Gitblit v1.8.0