using Entity.Api.Req;
using Entity.Api.Resp;
using HybirdFrameworkCore.Entity;
using Microsoft.AspNetCore.Mvc;
namespace WebStarter.Controllers;
///
/// 换电大屏
///
[ApiController]
[Route("api/[controller]")]
public class SwapMonitorController : ControllerBase
{
///
/// 首页换电状态信息
///
///
[HttpPost("GetSwapMonitorData")]
public async Task> GetSwapMonitorData()
{
return Result.Success(null);
}
///
/// 获取充电监控大屏 充电次数 每五分钟获取一次
///
[HttpPost("GetSwapAndChargingCount")]
public async Task> SwapAndChargingCount()
{
return Result.Success(null);
}
///
/// 锁清零
///
///
[HttpPost("LockReset")]
public async Task> LockReset()
{
return Result.Success(true);
}
///
/// 设置换电模式。1:远程换电(带有云平台);2:本地换电
///
[HttpPost("SetSwapModel/{swapModel}")]
public async Task> SetSwapModel(int swapModel)
{
return Result.Success();
}
///
/// 获取换电模式。1:远程换电(带有云平台);2:本地换电
///
[HttpPost("GetStationSwapModel")]
public async Task> GetStationSwapModel()
{
return Result.Success(1);
}
///
/// 设置换电方式信息。1:无感换电;2:本地按钮;3:云平台确认
///
[HttpPost("SetSwapWay/{swapWay}")]
public async Task> SetSwapWay(int stationSwapWay)
{
return Result.Success();
}
///
/// 获取换电方式信息。1:无感换电;2:本地按钮;3:云平台确认
///
[HttpPost("GetSwapWay")]
public async Task> GetSwapWay()
{
return Result.Success();
}
///
/// 换电复位
///
[HttpPost("SwapReset")]
public async Task> SwapReset()
{
return Result.Success();
}
///
/// 红绿灯操控
///
///
///
[HttpPost("OperateOutstationLamp")]
public async Task>OperateOutstationLamp(ushort lampCmd)
{
return Result.Success(true);
}
///
/// 换电大屏 换电成功 按钮 status :1成功 2:失败
///
///
///
[HttpGet("ManualSwapStatus/{swapNo}/{status}")]
public async Task> ManualChangeSuccess(string swapNo,int status)
{
return Result.Success();
}
///
/// 切换成 手动换电
///
[HttpPost("ManualSwapping")]
public Result ManualSwapping()
{
return Result.Success();
}
///
/// 切换成 自动换电
///
[HttpPost("AutoSwapping")]
public Result AutoSwapping(){
return Result.Success();
}
}