using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using WIDESEAWCS_Core; using WIDESEAWCS_Core.BaseController; using WIDESEAWCS_ITelescopicService; using WIDESEAWCS_IWMSPart; using WIDESEAWCS_Model.Models; namespace WIDESEAWCS_Server.Controllers.Telescopic { [Route("api/[controller]")] [ApiController] public class ParametersController : ApiBaseController { public ParametersController(IParametersService service) : base(service) { } /// /// 手动控制,伸缩杆的缩回和伸出速度 /// /// 伸缩杆的位置(左右) /// 伸/缩状态 /// /// [HttpPost,Route("ManualOperation"),AllowAnonymous] public WebResponseContent ManualOperation(string position, string ExtendedState) { return Service.ManualOperation(position, ExtendedState); } /// /// 自动控制伸缩杆的伸出和缩回速度 /// /// 伸/出状态 /// [HttpPost,Route("automation"),AllowAnonymous] public WebResponseContent automation(string ExtendedState) { return Service.automation(ExtendedState); } } }