| | |
| | | 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; |
| | |
| | | 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; |
| | |
| | | { |
| | | 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 |
| | | { |