37 lines
931 B
C#
37 lines
931 B
C#
using JiShe.CollectBus.Application.Contracts;
|
|
using Volo.Abp.AspNetCore.Mvc;
|
|
|
|
namespace JiShe.CollectBus.Host.Controllers
|
|
{
|
|
public class CommandController : AbpController
|
|
{
|
|
private readonly ILogger<CommandController> _logger;
|
|
private readonly ICommandService _commandService;
|
|
|
|
public CommandController(ILogger<CommandController> logger, ICommandService commandService)
|
|
{
|
|
_logger = logger;
|
|
_commandService = commandService;
|
|
}
|
|
|
|
public async Task<bool> AmmeterParameterSendAsync()
|
|
{
|
|
|
|
return await _commandService.AmmeterParameterSendAsync();
|
|
}
|
|
|
|
public bool AmmeterParameterReading()
|
|
{
|
|
return _commandService.AmmeterParameterReading();
|
|
}
|
|
|
|
public bool ActivePowerIndicationReading()
|
|
{
|
|
|
|
return _commandService.ActivePowerIndicationReading();
|
|
|
|
}
|
|
|
|
}
|
|
}
|