From 8ea14f10bfd3ed7a6b445d53feeb399b6bcf5d78 Mon Sep 17 00:00:00 2001 From: yanjinhui <3306209981@qq.com> Date: 星期二, 01 四月 2025 17:02:48 +0800 Subject: [PATCH] 人脸识别 --- 项目代码/WIDESEAWCS_Server 正式/WIDESEAWCS_Server/Controllers/System/Sys_UserController.cs | 95 +++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 94 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 97d579a..8678587 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" @@ -5,6 +5,7 @@ using Microsoft.Extensions.Caching.Memory; using Newtonsoft.Json; using StackExchange.Profiling; +using WIDESEAWCS_Common; using WIDESEAWCS_Core; using WIDESEAWCS_Core.Authorization; using WIDESEAWCS_Core.BaseController; @@ -13,6 +14,8 @@ using WIDESEAWCS_Core.Helper; using WIDESEAWCS_Core.HttpContextUser; using WIDESEAWCS_Core.Utilities; +using WIDESEAWCS_DTO.SerialPort; +using WIDESEAWCS_DTO.Telescopic; using WIDESEAWCS_ISystemServices; using WIDESEAWCS_Model; using WIDESEAWCS_Model.Models; @@ -136,8 +139,98 @@ { return Service.GetUerType(); } - } + [HttpPost, Route("PermissionView"), AllowAnonymous] + public WebResponseContent PermissionView(int userId, string group) + { + 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); + } + + + /// <summary> + /// 灞曠ず浜鸿劯鐢ㄦ埛淇℃伅 + /// </summary> + /// <param name="paginationDTO"></param> + /// <returns></returns> + [HttpPost, Route("GetUserFace"), AllowAnonymous] + public WebResponseContent GetUserFace([FromBody] PaginationDTO paginationDTO) + { + return Service.GetUserFace(paginationDTO); + } + + /// <summary> + /// 娣诲姞鐢ㄦ埛 + /// </summary> + /// <param name="addUserDTO"></param> + /// <returns></returns> + [HttpPost, Route("AdduserData"), AllowAnonymous] + public WebResponseContent AdduserData([FromBody]AddUserDTO addUserDTO) + { + return Service.AdduserData(addUserDTO); + } + + /// <summary> + /// 鏇存柊鐢ㄦ埛 + /// </summary> + /// <param name="addUserDTO"></param> + /// <returns></returns> + [HttpPost, Route("UpuserData"), AllowAnonymous] + public WebResponseContent UpuserData([FromBody] AddUserDTO addUserDTO) + { + return Service.UpuserData(addUserDTO); + } + + /// <summary> + /// 鍒犻櫎鐢ㄦ埛 + /// </summary> + /// <param name="deleteUserDTO"></param> + /// <returns></returns> + [HttpPost, Route("DeleteUserData"), AllowAnonymous] + public WebResponseContent DeleteUserData([FromBody] DeleteUserImg deleteUserDTO) + { + return Service.DeleteUserData(deleteUserDTO); + } + + } + public class SwaggerLoginRequest { -- Gitblit v1.9.3