From 926f5655d1147eb2dc66371052561fc1e9d256b4 Mon Sep 17 00:00:00 2001
From: smartwyy <645583145@qq.com>
Date: Tue, 28 May 2024 19:32:39 +0800
Subject: [PATCH] =?UTF-8?q?=E5=85=85=E7=94=B5=E6=9C=8D=E5=8A=A1=E6=8E=A5?=
=?UTF-8?q?=E5=8F=A3=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
WebStarter/Controllers/ChargeController.cs | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/WebStarter/Controllers/ChargeController.cs b/WebStarter/Controllers/ChargeController.cs
index 58f58b8..6092a49 100644
--- a/WebStarter/Controllers/ChargeController.cs
+++ b/WebStarter/Controllers/ChargeController.cs
@@ -15,7 +15,7 @@ namespace WebStarter.Controllers;
///
[Produces("application/json")]
[ApiController]
-[Route("/api/[controller]")]
+[Route("api/[controller]")]
public class ChargeController : ControllerBase
{
private ChargerService _chargerService;
@@ -33,7 +33,7 @@ public class ChargeController : ControllerBase
///
/// 仓位信息列表
[HttpGet]
- [Route("/api/ChrgMonitor/GetChargMonitorChargBinData")]
+ [Route("GetChargMonitorChargBinData")]
public Result> GetChargMonitorChargBinData()
{
List binInfos = _binInfoRepository.Query();
@@ -61,7 +61,7 @@ public class ChargeController : ControllerBase
/// 需要禁用仓id
/// 仓位信息列表
[HttpGet]
- [Route("/api/TBsChargingBinInfo/ChargingBinDisable{data}")]
+ [Route("ChargingBinDisable/{data}")]
public Result ChargingBinDisable(int data)
{
return Result.Success(_binInfoRepository.UpdateStatus(data));
@@ -72,7 +72,7 @@ public class ChargeController : ControllerBase
///
/// 仓位实时功率列表
[HttpPost]
- [Route("/api/ChrgMonitor/GetBinPowers")]
+ [Route("GetBinPowers")]
public Result GetBinPowers()
{
float[] results = ClientMgr.Dictionary.Values
@@ -87,7 +87,7 @@ public class ChargeController : ControllerBase
/// 仓号
///
[HttpGet]
- [Route("/api/ChrgMonitor/StartChargeByBinNo/{binNo}")]
+ [Route("StartChargeByBinNo/{binNo}")]
public Result StartChargeByBinNo(string binNo)
{
return _chargerService.StartChargeByBinNo(binNo);
@@ -99,7 +99,7 @@ public class ChargeController : ControllerBase
/// 仓号
///
[HttpGet]
- [Route("/api/ChrgMonitor/StopChargeByBinNo/{binNo}")]
+ [Route("StopChargeByBinNo/{binNo}")]
public Result StopChargeByBinNo(string binNo)
{
return _chargerService.StartChargeByBinNo(binNo);