From 74b0e0814e37d640596f44ec86d20fa9ecce9ed6 Mon Sep 17 00:00:00 2001
From: puzhibing <393733352@qq.com>
Date: 星期三, 05 二月 2025 10:42:06 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/controller/TCarportController.java |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/controller/TCarportController.java b/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/controller/TCarportController.java
index 56e736a..66a452d 100644
--- a/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/controller/TCarportController.java
+++ b/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/controller/TCarportController.java
@@ -12,6 +12,8 @@
 import com.ruoyi.common.log.annotation.Log;
 import com.ruoyi.common.log.enums.BusinessType;
 import com.ruoyi.common.log.enums.OperatorType;
+import com.ruoyi.common.security.annotation.Logical;
+import com.ruoyi.common.security.annotation.RequiresPermissions;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
 import org.springframework.beans.factory.annotation.Autowired;
@@ -45,6 +47,7 @@
     /**
      * 通过停车场id查询车库及车道信息
      */
+    @RequiresPermissions(value = {"/parkingLot"}, logical = Logical.OR)
     @ApiOperation(tags = {"后台-车库"},value = "通过停车场id查询车库及车道信息")
     @GetMapping(value = "/queryCarportByParkId")
     public AjaxResult<List<TCarportVO>> queryCarportByParkId(@RequestParam(value = "parkingLotId", required = true) Integer parkingLotId) {
@@ -55,6 +58,7 @@
     /**
      * 添加车库管理
      */
+    @RequiresPermissions(value = {"/parkingLot/add_garage"}, logical = Logical.OR)
     @Log(title = "【车库】添加车库", businessType = BusinessType.INSERT)
     @ApiOperation(tags = {"后台-车库"},value = "添加车库")
     @PostMapping(value = "/add")
@@ -65,6 +69,7 @@
     /**
      * 修改车库
      */
+    @RequiresPermissions(value = {"/parkingLot/update_garage"}, logical = Logical.OR)
     @Log(title = "【车库】修改车库", businessType = BusinessType.UPDATE,operatorType = OperatorType.MANAGE)
     @ApiOperation(tags = {"后台-车库"},value = "修改车库")
     @PostMapping(value = "/update")
@@ -75,6 +80,7 @@
     /**
      * 查看车库详情
      */
+    @RequiresPermissions(value = {"/parkingLot/update_garage"}, logical = Logical.OR)
     @ApiOperation(tags = {"后台-车库"},value = "查看车库详情")
     @GetMapping(value = "/getDetailById")
     public AjaxResult<TCarport> getDetailById(@RequestParam("id") Integer id) {
@@ -84,6 +90,7 @@
     /**
      * 删除车库
      */
+    @RequiresPermissions(value = {"/parkingLot/del_garage"}, logical = Logical.OR)
     @Log(title = "【车库】删除车库", businessType = BusinessType.DELETE,operatorType = OperatorType.MANAGE)
     @ApiOperation(tags = {"后台-车库"},value = "删除车库")
     @DeleteMapping(value = "/deleteById")
@@ -97,6 +104,7 @@
     /**
      * 批量删除车库
      */
+    @RequiresPermissions(value = {"/parkingLot/del_garage"}, logical = Logical.OR)
     @Log(title = "【车库】批量删除车库", businessType = BusinessType.DELETE,operatorType = OperatorType.MANAGE)
     @ApiOperation(tags = {"后台-车库"},value = "批量删除车库")
     @DeleteMapping(value = "/deleteByIds")

--
Gitblit v1.7.1