From f1a841f056fe4d7be16f39d6fe169667f743d00a Mon Sep 17 00:00:00 2001 From: yanjinhui <3306209981@qq.com> Date: 星期二, 27 五月 2025 17:29:56 +0800 Subject: [PATCH] 重新修改/开始检修/结束检修/检修记录等接口 --- project/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/Telescopic/ParametersController.cs | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 43 insertions(+), 0 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 8bae7ab..8cbc170 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; @@ -41,5 +42,47 @@ { 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(); + } + + + /// <summary> + ///褰撹嚜鍔ㄤ几鍑洪渶瑕佹殏鍋滄椂锛屾殏鍋滄寜閽� + /// </summary> + /// <returns></returns> + [HttpPost, Route("PauseButton"), AllowAnonymous] + public WebResponseContent PauseButton() + { + return Service.PauseButton(); + } + + /// <summary> + /// 鑾峰彇褰撳墠浼哥缉鏉嗙殑浣嶇疆 + /// </summary> + /// <returns></returns> + [HttpPost, Route("CurrentLocation"), AllowAnonymous] + public WebResponseContent CurrentLocation() + { + return Service.CurrentLocation(); + } } } -- Gitblit v1.9.3