From 461ccbda1d9d3fef42f250771c2fd30702755c16 Mon Sep 17 00:00:00 2001 From: yanjinhui <3306209981@qq.com> Date: 星期四, 24 四月 2025 17:18:35 +0800 Subject: [PATCH] PLC --- 项目代码/WIDESEAWCS_Server 正式/WIDESEAWCS_Server/Controllers/SerialPort/PutakeController.cs | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-) diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEAWCS_Server \346\255\243\345\274\217/WIDESEAWCS_Server/Controllers/SerialPort/PutakeController.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEAWCS_Server \346\255\243\345\274\217/WIDESEAWCS_Server/Controllers/SerialPort/PutakeController.cs" index 7e624dc..89a91ea 100644 --- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEAWCS_Server \346\255\243\345\274\217/WIDESEAWCS_Server/Controllers/SerialPort/PutakeController.cs" +++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEAWCS_Server \346\255\243\345\274\217/WIDESEAWCS_Server/Controllers/SerialPort/PutakeController.cs" @@ -42,5 +42,22 @@ return Service.PerformTasks(group); } + [HttpPost, Route("Getstatus"), AllowAnonymous] + public WebResponseContent Getstatus() + { + return Service.Getstatus(); + } + + [HttpPost, Route("OpenDoor"), AllowAnonymous] + public WebResponseContent OpenDoor(string group) + { + return Service.OpenDoor(group); + } + + [HttpPost,Route("ClosedDoor"),AllowAnonymous] + public WebResponseContent ClosedDoor(string group) + { + return Service.ClosedDoor(group); + } } } -- Gitblit v1.9.3