|
|
@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
using HybirdFrameworkCore.Entity;
|
|
|
|
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
|
|
|
|
using Service.Cloud.Client;
|
|
|
|
|
|
|
|
using Service.Cloud.Msg.Host.Resp.OutCharger;
|
|
|
|
|
|
|
|
using Service.Init;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace WebStarter.Controllers;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
/// 站外充电机管理
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
|
[Produces("application/json")]
|
|
|
|
|
|
|
|
[ApiController]
|
|
|
|
|
|
|
|
[Route("api/[controller]")]
|
|
|
|
|
|
|
|
public class OutChargerController
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
/// 9.2.1.2 站控应答开始充电操作
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
|
/// <param name="req"></param>
|
|
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
|
|
[HttpPost]
|
|
|
|
|
|
|
|
[Route("ResStartOutCharger")]
|
|
|
|
|
|
|
|
public Result<bool> ResStartOutCharger([FromBody] PileStartChargeResp req)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
CloudClientMgr.CloudClient?.Publish(req);
|
|
|
|
|
|
|
|
return Result<bool>.Success(true);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
/// 9.2.1.8 站控响应充电枪停止充电操作
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
|
/// <param name="req"></param>
|
|
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
|
|
[HttpPost]
|
|
|
|
|
|
|
|
[Route("ResStopOutCharger")]
|
|
|
|
|
|
|
|
public Result<bool> ResStopOutCharger([FromBody] PileStopChargeResp req)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
CloudClientMgr.CloudClient?.Publish(req);
|
|
|
|
|
|
|
|
return Result<bool>.Success(true);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|