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