1
yanjinhui
2025-04-27 01c5166aad248cf4de78d7aeb53c31f961835f02
ÏîÄ¿´úÂë/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/Telescopic/ParametersController.cs
@@ -1,5 +1,7 @@
using Microsoft.AspNetCore.Http;
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;
@@ -13,6 +15,31 @@
    {
        public ParametersController(IParametersService service) : base(service)
        {
        }
        /// <summary>
        /// æ‰‹åŠ¨æŽ§åˆ¶ï¼Œä¼¸ç¼©æ†çš„ç¼©å›žå’Œä¼¸å‡ºé€Ÿåº¦
        /// </summary>
        /// <param name="position">伸缩杆的位置(左右)</param>
        /// <param name="ExtendedState">伸/缩状态</param>
        /// <returns></returns>
        ///
        [HttpPost,Route("ManualOperation"),AllowAnonymous]
        public  WebResponseContent ManualOperation(string position, string ExtendedState)
        {
            return Service.ManualOperation(position, ExtendedState);
        }
        /// <summary>
        /// è‡ªåŠ¨æŽ§åˆ¶ä¼¸ç¼©æ†çš„ä¼¸å‡ºå’Œç¼©å›žé€Ÿåº¦
        /// </summary>
        /// <param name="ExtendedState">伸/出状态</param>
        /// <returns></returns>
        [HttpPost,Route("automation"),AllowAnonymous]
        public WebResponseContent automation(string ExtendedState)
        {
            return Service.automation(ExtendedState);
        }
    }
}