From da2e87c2a05debbcc7dac5efb5d13c92d533782f Mon Sep 17 00:00:00 2001 From: yanjinhui <3306209981@qq.com> Date: 星期三, 26 三月 2025 08:54:10 +0800 Subject: [PATCH] 111 --- 项目代码/WIDESEAWCS_Server 正式/WIDESEAWCS_Server/Controllers/SerialPort/ProcessController.cs | 49 ++++++++++++++++++++++++++++++++++++++++--------- 1 files changed, 40 insertions(+), 9 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/ProcessController.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/ProcessController.cs" index b900d14..e4a21e1 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/ProcessController.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/ProcessController.cs" @@ -19,25 +19,34 @@ { } - [HttpGet, Route("GetProcess"), AllowAnonymous] - public WebResponseContent GetProcess(string gruop) - { - return Service.GetProcess(gruop); - } + /// <summary> + /// 鑾峰彇濂楃瓛鏁伴噺 + /// </summary> + /// <returns>杩斿洖鐝粍銆佹�绘楠ゃ�佸绛掓暟閲�</returns> [HttpGet, Route("GetSleeveandStep"), AllowAnonymous] - public WebResponseContent GetSleeveandStep(string grops) + public WebResponseContent GetSleeveandStep() { - return Service.GetSleeveandStep(grops); + return Service.GetSleeveandStep(); } + /// <summary> + /// 鏍规嵁id鏉ュ垽鏂槸娣诲姞杩樻槸鏇存柊 + /// </summary> + /// <param name="addProcessDTO"></param> + /// <returns></returns> [HttpPost, Route("AddOrUpdateProcess"), AllowAnonymous] public WebResponseContent AddOrUpdateProcess([FromBody] AddProcessDTO addProcessDTO) { return Service.AddOrUpdateProcess(addProcessDTO); } - + /// <summary> + /// 鑾峰彇褰撳墠浠诲姟宸ヤ綔姝ラ + /// </summary> + /// <param name="group"></param> + /// <param name="takeid"></param> + /// <returns></returns> [HttpGet, Route("Getcircuit"), AllowAnonymous] public WebResponseContent Getcircuit(string group, string takeid) { @@ -45,18 +54,40 @@ } - + /// <summary> + /// 宸ヨ壓涓嬩竴姝ヨ烦杞� + /// </summary> + /// <param name="setpDTO">褰撳墠鐝粍鐨勪换鍔″綋鍓嶆楠�</param> + /// <param name="flag">鏄惁寮哄埗鎵ц锛涙槸true锛屽惁false</param> + /// <returns>杩斿洖1銆佸綋鍓嶆楠わ紱2銆佹渶澶ф楠わ紱3銆佸凡瀹屾垚鐨勫伐鑹�</returns> [HttpPost, Route("Nextprocess"), AllowAnonymous] public WebResponseContent Nextprocess([FromBody] SetpDTO setpDTO, bool flag) { return Service.Nextprocess(setpDTO, flag); } + /// <summary> + /// 涓婁竴姝� + /// </summary> + /// <param name="setpDTO"></param> + /// <returns></returns> [HttpPost, Route("PreviousProcess"), AllowAnonymous] public WebResponseContent PreviousProcess([FromBody] SetpDTO setpDTO) { return Service.PreviousProcess(setpDTO); } + /// <summary> + /// 璇诲彇褰撳墠宸ヨ壓姝ラ鐨勬壄鍔涘�间笌娆℃暟 + /// </summary> + /// <param name="grop"></param> + /// <param name="setnum"></param> + /// <returns></returns> + [HttpPost, Route("GetValueandNumber"), AllowAnonymous] + public WebResponseContent GetValueandNumber(string grop, int setnum) + { + return Service.GetValueandNumber(grop, setnum); + } + } } -- Gitblit v1.9.3