using Application; using Microsoft.AspNetCore.Authorization; namespace WebApi.Controllers; [ApiController] [Route("api/[controller]/[action]")] public class AuthController( IAuthApplication authApplication, ILogger logger) : ControllerBase { /// /// 用户登录 /// [AllowAnonymous] [HttpPost] public BaseResponse Login([FromBody] Application.Dto.LoginRequest request) { var response = authApplication.Login(request); logger.LogInformation("用户登录成功"); return response.Ok(); } }