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.

57 lines
1.3 KiB

using HybirdFrameworkCore.Entity;
using Microsoft.AspNetCore.Mvc;
namespace WebStarter.Controllers;
/// <summary>
/// 充电大屏
/// </summary>
[ApiController]
[Route("api/[controller]")]
public class ChargeMonitorController
{
/// <summary>
/// 充电仓查询:条件:仓位编号 仓位名称
/// </summary>
[HttpGet("UploadCloud/{id}")]
public void ChargePositionQuery()
{
}
/// <summary>
/// 充电仓 0禁用 1启用
/// </summary>
/// <param name="info"></param>
/// <returns></returns>
[HttpPost("SetChargingBinStatus/{binNo}/{status}")]
public async Task<Result<int>> ChargingBinDisable(int binNo,int status)
{
return Result<int>.Success(1);
}
/// <summary>
/// 电池移仓
/// </summary>
/// <param name="removeBinNo">取仓号</param>
/// <param name="putBinNo">放仓号</param>
/// <returns></returns>
[HttpGet("BatteryRelocation")]
public async Task<Result<bool>> BatteryRelocation(ushort removeBinNo, ushort putBinNo)
{
return Result<bool>.Success();
}
/// <summary>
/// 移仓时下拉项 仓位电池状态
/// </summary>
[HttpGet("GetChargeBinOption")]
public Result<int[]> GetChargeBinOption()
{
return Result<int[]>.Success();
}
}