From 2f0c81709876d76b6b120cf6ac43f05cda6dfe4c Mon Sep 17 00:00:00 2001 From: yanjinhui <3306209981@qq.com> Date: 星期六, 22 三月 2025 09:36:13 +0800 Subject: [PATCH] 修改websocket; --- 项目代码/WIDESEAWCS_Server 正式/WIDESEAWCS_Server/Controllers/System/Sys_UserController.cs | 41 ++++++++++++++++++++++++++++++++++++++++- 1 files changed, 40 insertions(+), 1 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/System/Sys_UserController.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/System/Sys_UserController.cs" index 361eeb4..f782394 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/System/Sys_UserController.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/System/Sys_UserController.cs" @@ -13,6 +13,7 @@ using WIDESEAWCS_Core.Helper; using WIDESEAWCS_Core.HttpContextUser; using WIDESEAWCS_Core.Utilities; +using WIDESEAWCS_DTO.SerialPort; using WIDESEAWCS_ISystemServices; using WIDESEAWCS_Model; using WIDESEAWCS_Model.Models; @@ -142,8 +143,46 @@ { return Service.PermissionView(userId,group); } - } + + + /// <summary> + /// 涓婁紶鍥剧墖鏂囦欢鍚� + /// </summary> + /// <param name="files"></param> + /// <param name="sys_User"></param> + /// <returns></returns> + [HttpPost, Route("SaveFiles"), AllowAnonymous] + public WebResponseContent SaveFiles(IFormCollection files) + { + return Service.SaveFiles(files); + + + } + + + + /// <summary> + /// 淇敼鐢ㄦ埛瀵嗙爜 + /// </summary> + /// <param name="id"></param> + /// <param name="oldPwd"></param> + /// <param name="newPwd"></param> + /// <returns></returns> + [HttpPost,Route("UpdatePwd")] + public WebResponseContent UpdatePwd(int id, string oldPwd, string newPwd) + { + return Service.UpdatePwd(id, oldPwd, newPwd); + } + + + [HttpPost,Route("Upuserbase"), AllowAnonymous] + public WebResponseContent Upuserbase([FromBody]UserDTO userDTO) + { + return Service.Upuserbase(userDTO); + } + } + public class SwaggerLoginRequest { -- Gitblit v1.9.3