using Application.Models; using Microsoft.AspNetCore.Mvc; using Swashbuckle.AspNetCore.Annotations; using System; namespace FBeeService.Controllers { [SwaggerTag("窗帘")] public class CurtainController : SwitchController { protected readonly DeviceService _deviceService; public CurtainController(IServiceProvider applicationServices, DeviceService deviceService) : base(applicationServices, deviceService) { this._deviceService = deviceService; } [HttpGet, Route("/[controller]/[action]"), SwaggerOperation("停")] public ApiResponse Stop(string gateway, string id) { return this.AsyncAction(() => { this._deviceService.X82(gateway, id, 2); }); } } }