wankeda
2025-06-24 1caea0fdc7ed1788d854a2aba8853984b4494e01
代码管理/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/System/Sys_UserController.cs
@@ -2,6 +2,7 @@
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;
@@ -14,6 +15,7 @@
using WIDESEA_ISystemService;
using WIDESEA_Model;
using WIDESEA_Model.Models;
using ICacheService = WIDESEA_Core.Caches.ICacheService;
namespace WIDESEA_WMSServer.Controllers
{
@@ -35,6 +37,11 @@
        {
            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()
@@ -48,6 +55,13 @@
            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()
        {