From 01c5166aad248cf4de78d7aeb53c31f961835f02 Mon Sep 17 00:00:00 2001 From: yanjinhui <3306209981@qq.com> Date: 星期日, 27 四月 2025 08:46:23 +0800 Subject: [PATCH] 1 --- 项目代码/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/Telescopic/ParametersController.cs | 29 ++++++++++++++++++++++++++++- 1 files changed, 28 insertions(+), 1 deletions(-) diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/Telescopic/ParametersController.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/Telescopic/ParametersController.cs" index 7136a74..8bae7ab 100644 --- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/Telescopic/ParametersController.cs" +++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/Telescopic/ParametersController.cs" @@ -1,5 +1,7 @@ -锘縰sing Microsoft.AspNetCore.Http; +锘縰sing 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); } } } -- Gitblit v1.9.3