using HybirdFrameworkCore.Entity; using Microsoft.AspNetCore.Mvc; using Service.Cloud.Client; using Service.Cloud.Msg.Host.Req.OutCharger; using Service.Cloud.Msg.Host.Resp.OutCharger; using Service.Execute.Api; using Service.Init; namespace WebStarter.Controllers; /// /// 站外充电机管理 /// [Produces("application/json")] [ApiController] [Route("api/[controller]")] public class OutChargerController { /// /// 9.2.1.2 站控应答开始充电操作 /// /// /// [HttpPost] [Route("ResStartOutCharger")] public Result ResStartOutCharger([FromBody] PileStartChargeResp req) { CloudClientMgr.CloudClient?.Publish(req); return Result.Success(true); } /// /// 9.2.1.8 站控响应充电枪停止充电操作 /// /// /// [HttpPost] [Route("ResStopOutCharger")] public Result ResStopOutCharger([FromBody] PileStopChargeResp req) { CloudClientMgr.CloudClient?.Publish(req); return Result.Success(true); } /// /// 9.2.1.3 站控上报充电枪充电结束事件 /// /// /// [HttpPost] [Route("SendPileEndCharge")] public Result SendPileEndCharge([FromBody] PileEndCharge req) { CloudApi.SendPileEndCharge(req); return Result.Success(true); } /// /// 9.2.1.7 站控上报充电枪充电遥测数据 /// /// /// [HttpPost] [Route("SendPileChargeRealtime")] public Result SendPileChargeRealtime([FromBody] PileChargeRealtime req) { CloudApi.SendPileChargeRealtime(req); return Result.Success(true); } /// /// 9.2.1.5 站控上报充电枪实时数据上报 /// /// /// [HttpPost] [Route("SendPileRealtime")] public Result SendPileRealtime([FromBody] PileRealtime req) { CloudApi.SendPileRealtime(req); return Result.Success(true); } }