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 _logger; public ElecMeterParamController(ILogger logger) { _logger = logger; } /// /// 获取电力仪表参数值,参数:总功率,总电能 /// /// [HttpPost] [Route("/api/[controller]/GetElecMeterParamValue")] public List GetElecMeterParamValue() { List result = new List(); result = new ElecMeterEqmManger().GetEMeterParamResultList(); return result; } } }