From bdc88e08328c360c2bddeedde744d858a7fd7e3d Mon Sep 17 00:00:00 2001 From: yanjinhui <3306209981@qq.com> Date: 星期四, 15 五月 2025 13:51:44 +0800 Subject: [PATCH] 修改信号/伸缩杆速度 --- project/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/Telescopic/ParametersController.cs | 30 ++++++++++++++++++++++++++---- 1 files changed, 26 insertions(+), 4 deletions(-) diff --git a/project/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/Telescopic/ParametersController.cs b/project/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/Telescopic/ParametersController.cs index 8c93625..678df0c 100644 --- a/project/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/Telescopic/ParametersController.cs +++ b/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; @@ -25,9 +26,9 @@ /// <returns></returns> /// [HttpPost,Route("ManualOperation"),AllowAnonymous] - public WebResponseContent ManualOperation(string position, string ExtendedState, string account) + public WebResponseContent ManualOperation(string position, string ExtendedState) { - return Service.ManualOperation(position, ExtendedState, account); + return Service.ManualOperation(position, ExtendedState); } /// <summary> @@ -37,9 +38,30 @@ /// <returns></returns> [HttpPost,Route("automation"),AllowAnonymous] - public WebResponseContent automation(string ExtendedState, string account) + 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"), AllowAnonymous] + public WebResponseContent BackfillSpeed() + { + return Service.BackfillSpeed(); } } } -- Gitblit v1.9.3