| | |
| | | using Microsoft.AspNetCore.Http; |
| | | using Microsoft.AspNetCore.Mvc; |
| | | using Microsoft.Extensions.Caching.Memory; |
| | | using SqlSugar; |
| | | using StackExchange.Profiling; |
| | | using WIDESEA_Core; |
| | | using WIDESEA_Core.Authorization; |
| | |
| | | using WIDESEA_ISystemService; |
| | | using WIDESEA_Model; |
| | | using WIDESEA_Model.Models; |
| | | using ICacheService = WIDESEA_Core.Caches.ICacheService; |
| | | |
| | | namespace WIDESEA_WMSServer.Controllers |
| | | { |
| | |
| | | { |
| | | return Json(Service.Login(loginInfo)); |
| | | } |
| | | [HttpPost, Route("login1"), AllowAnonymous] |
| | | public IActionResult Login1([FromBody] LoginInfo loginInfo) |
| | | { |
| | | return Json(Service.Login1(loginInfo)); |
| | | } |
| | | |
| | | [HttpPost, Route("getCurrentUserInfo")] |
| | | public WebResponseContent GetCurrentUser() |
| | |
| | | return Json(Service.ModifyPwd(oldPwd, newPwd)); |
| | | } |
| | | |
| | | [HttpPost,Route("modifyUserPwd")] |
| | | public WebResponseContent modifyUserPwd(string userName, string password) |
| | | { |
| | | return Service.modifyUserPwd(userName, password); |
| | | } |
| | | |
| | | |
| | | [HttpGet, Route("getVierificationCode"), AllowAnonymous] |
| | | public IActionResult GetVierificationCode() |
| | | { |