sjz
9 天以前 678e995cca52a9072c0a92a805060b4969d1010f
MESApplication/Controllers/Base/LoginController.cs
@@ -3,14 +3,23 @@
using MES.Service.service;
using MES.Service.util;
using Microsoft.AspNetCore.Mvc;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace MESApplication.Controllers.Base;
/// <summary>
///     用户
/// </summary>
[Route("api/[controller]")]
[ApiController]
public class LoginController : ControllerBase
{
    /// <summary>
    ///     登录
    /// </summary>
    /// <param name="model"></param>
    /// <returns></returns>
    [HttpPost("login")]
    public ResponseResult login([FromBody] LoginModel model)
    {
@@ -34,6 +43,11 @@
        }
    }
    /// <summary>
    ///     重设密码
    /// </summary>
    /// <param name="data"></param>
    /// <returns></returns>
    [HttpPost("resetPassword")]
    public ResponseResult resetPassword([FromBody] JObject data)
    {
@@ -66,7 +80,11 @@
        }
    }
    /// <summary>
    ///     用户菜单
    /// </summary>
    /// <param name="data"></param>
    /// <returns></returns>
    [HttpPost("getUserMenu")]
    public ResponseResult getUserMenu([FromBody] JObject data)
    {
@@ -88,4 +106,5 @@
            return ResponseResult.ResponseError(ex);
        }
    }
}