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.

33 lines
954 B

using Microsoft.AspNetCore.Mvc;
using Monitor.Models;
using Module.EMeter.ModbusTcp;
namespace Monitor.EqmMgr.WebApi.Controllers
{
[ApiController]
[Route("[controller]")]
public class ElecMeterParamController : ControllerBase
{
private readonly ILogger<ElecMeterParamController> _logger;
public ElecMeterParamController(ILogger<ElecMeterParamController> logger)
{
_logger = logger;
}
/// <summary>
/// 获取电力仪表参数值,参数:总功率,总电能
/// </summary>
/// <returns></returns>
[HttpPost]
[Route("/api/[controller]/GetElecMeterParamValue")]
public List<MEMeterParamResult> GetElecMeterParamValue()
{
List<MEMeterParamResult> result = new List<MEMeterParamResult>();
result = new ElecMeterEqmManger().GetEMeterParamResultList();
return result;
}
}
}