using HybirdFrameworkCore.Entity;
using Microsoft.AspNetCore.Mvc;
using Service.Cloud.Client;
using Service.Cloud.Msg.Host.Resp.OutCharger;
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);
}
}