From 3e6094c1c71f71824890baaf9163d66a76bb4433 Mon Sep 17 00:00:00 2001
From: longz <longzhaoz@qq.com>
Date: 星期五, 28 八月 2026 17:18:34 +0800
Subject: [PATCH] 删除越权漏洞修复中的内部调用注解
---
ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/controller/TChargingGunController.java | 11 -----------
1 files changed, 0 insertions(+), 11 deletions(-)
diff --git a/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/controller/TChargingGunController.java b/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/controller/TChargingGunController.java
index 1f67b80..3fac4f5 100644
--- a/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/controller/TChargingGunController.java
+++ b/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/controller/TChargingGunController.java
@@ -74,7 +74,6 @@
* 新增临时枪
* @return
*/
- @InnerAuth
@PostMapping("/addGunTemp")
@ResponseBody
R<Integer> addGunTemp(@RequestBody TChargingGun gun){
@@ -84,7 +83,6 @@
/**
* 查询所有枪
*/
- @InnerAuth
@PostMapping(value = "/getAllGun")
@ResponseBody
public R<List<TChargingGun>> getAllGun() {
@@ -93,7 +91,6 @@
/**
* 查询所有桩
*/
- @InnerAuth
@PostMapping(value = "/getAllPile")
public R<List<TChargingPile>> getAllPile() {
return R.ok(chargingPileService.list());
@@ -292,7 +289,6 @@
* @return
*/
@ResponseBody
- @InnerAuth
@PostMapping(value = "/getAllName/{id}")
public R<String> getAllName(@PathVariable Integer id){
TChargingGun chargingGun = chargingGunService.getById(id);
@@ -307,7 +303,6 @@
* @return
*/
@ResponseBody
- @InnerAuth
@PostMapping(value = "/getChargingGunById/{id}")
public R<TChargingGun> getChargingGunById(@PathVariable Integer id){
TChargingGun chargingGun = chargingGunService.getById(id);
@@ -327,7 +322,6 @@
* @return
*/
@ResponseBody
- @InnerAuth
@PostMapping(value = "/getAllInfoById/{id}")
public R<SiteNameVO> getAllInfoById(@PathVariable Integer id){
SiteNameVO siteNameVO = new SiteNameVO();
@@ -346,7 +340,6 @@
* @param code
* @return
*/
- @InnerAuth
@PostMapping("/getChargingGunByCode")
public R<TChargingGun> getChargingGunByCode(@RequestBody GetChargingGunByCode code){
TChargingPile chargingPile = chargingPileService.getOne(new LambdaQueryWrapper<TChargingPile>()
@@ -367,7 +360,6 @@
* @param chargingGun
* @return
*/
- @InnerAuth
@PostMapping("/updateChargingGunById")
public R<String> updateChargingGunById(@RequestBody TChargingGun chargingGun){
chargingGunService.updateById(chargingGun);
@@ -381,7 +373,6 @@
* @param chargingPileId
* @return
*/
- @InnerAuth
@PostMapping("/getChargingGunByChargingPileId")
public R<List<TChargingGun>> getChargingGunByChargingPileId(@RequestParam("chargingPileId") Integer chargingPileId){
List<TChargingGun> list = chargingGunService.list(new LambdaQueryWrapper<TChargingGun>().eq(TChargingGun::getChargingPileId, chargingPileId)
@@ -394,7 +385,6 @@
* 根据充电桩ids获取枪
* @return
*/
- @InnerAuth
@PostMapping("/getChargingGunByChargingPileIds")
public R<List<TChargingGun>> getChargingGunByChargingPileIds(@RequestBody GetChargingGunByChargingPileIdsVo vo){
if(vo.getChargingPileIds().isEmpty()){
@@ -410,7 +400,6 @@
* 根据枪唯一码查询信息
* @return
*/
- @InnerAuth
@PostMapping("/getChargingGunByFullNumber")
public R<TChargingGun> getChargingGunByFullNumber(@RequestParam("fullNumber") String fullNumber){
TChargingGun chargingGun = chargingGunService.getOne(new LambdaQueryWrapper<TChargingGun>().eq(TChargingGun::getDelFlag, 0).eq(TChargingGun::getFullNumber, fullNumber));
--
Gitblit v1.7.1