You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.1 KiB
42 lines
1.1 KiB
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);
|
|
}
|
|
} |