yanjinhui
2025-06-12 d723d5c1413bb38ceb7d7404f4817e6540c3c2a0
project/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/Telescopic/ParametersController.cs
@@ -3,6 +3,7 @@
using Microsoft.AspNetCore.Mvc;
using WIDESEAWCS_Core;
using WIDESEAWCS_Core.BaseController;
using WIDESEAWCS_DTO.Telescopic;
using WIDESEAWCS_ITelescopicService;
using WIDESEAWCS_IWMSPart;
using WIDESEAWCS_Model.Models;
@@ -24,10 +25,10 @@
        /// <param name="ExtendedState">伸/缩状态</param>
        /// <returns></returns>
        /// 
        [HttpPost,Route("ManualOperation"),AllowAnonymous]
        public  WebResponseContent ManualOperation(string position, string ExtendedState, string account)
        [HttpPost, Route("ManualOperation")]
        public  WebResponseContent ManualOperation(string position, string ExtendedState)
        {
            return Service.ManualOperation(position, ExtendedState, account);
            return Service.ManualOperation(position, ExtendedState);
        }
        /// <summary>
@@ -36,10 +37,52 @@
        /// <param name="ExtendedState">伸/出状态</param>
        /// <returns></returns>
        [HttpPost,Route("automation"),AllowAnonymous]
        public WebResponseContent automation(string ExtendedState, string account)
        [HttpPost,Route("automation")]
        public WebResponseContent automation(string ExtendedState)
        {
            return Service.automation(ExtendedState, account);
            return Service.automation(ExtendedState);
        }
        /// <summary>
        /// 根据账号添加伸缩杆速度
        /// </summary>
        /// <param name="entity"></param>
        /// <returns></returns>
        [HttpPost, Route("AddSpeed"), AllowAnonymous]
        public WebResponseContent AddSpeed([FromBody]SpeedDTO entity)
        {
            return Service.AddSpeed(entity);
        }
        /// <summary>
        /// 获取当前程序最新的伸缩杆速度回填给前端
        /// </summary>
        /// <returns></returns>
        [HttpPost, Route("BackfillSpeed")]
        public WebResponseContent BackfillSpeed()
        {
            return Service.BackfillSpeed();
        }
        /// <summary>
        ///当自动伸出需要暂停时,暂停按钮
        /// </summary>
        /// <returns></returns>
        [HttpPost, Route("PauseButton")]
        public WebResponseContent PauseButton()
        {
            return Service.PauseButton();
        }
        /// <summary>
        /// 获取当前伸缩杆的位置
        /// </summary>
        /// <returns></returns>
        [HttpPost, Route("CurrentLocation")]
        public WebResponseContent CurrentLocation()
        {
            return Service.CurrentLocation();
        }
    }
}