From 42ffa2417f1a7a21412fb7f0f9985e23e8013f9b Mon Sep 17 00:00:00 2001 From: yanjinhui <3306209981@qq.com> Date: 星期三, 26 三月 2025 10:09:02 +0800 Subject: [PATCH] 改用服务层 --- 项目代码/WIDESEAWCS_Server 正式/WIDESEAWCS_Server/Controllers/SerialPort/TorqueOpController.cs | 18 ++++++++++++++++++ 1 files changed, 18 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/TorqueOpController.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/TorqueOpController.cs" index d8449a6..b85a18f 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/TorqueOpController.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/TorqueOpController.cs" @@ -3,6 +3,7 @@ using Microsoft.AspNetCore.Mvc; using WIDESEAWCS_Core; using WIDESEAWCS_Core.BaseController; +using WIDESEAWCS_DTO.SerialPort; using WIDESEAWCS_DTO.TaskInfo; using WIDESEAWCS_ITaskInfoService; using WIDESEAWCS_Model.Models; @@ -18,6 +19,23 @@ { } + [HttpPost,Route("Checkvalue"), AllowAnonymous] + public WebResponseContent Checkvalue([FromBody]GetTorDTO getTorDTO) + { + return Service.Checkvalue(getTorDTO); + } + + [HttpPost, Route("AddTorqueOp"), AllowAnonymous] + public WebResponseContent AddTorqueOp([FromBody] Dt_TorqueOp torqueOp) + { + return Service.AddTorqueOp(torqueOp); + } + + [HttpPost,Route("WhetherSaveValueData"), AllowAnonymous] + public WebResponseContent WhetherSaveValueData(string takeid, string group, int setpunm) + { + return Service.WhetherSaveValueData(takeid, group, setpunm); + } } } -- Gitblit v1.9.3