From daa3e95fba4da1b40818c059edf86c7af3d90b26 Mon Sep 17 00:00:00 2001 From: sunpengfei <i@angelzzz.com> Date: 星期一, 04 八月 2025 11:01:43 +0800 Subject: [PATCH] pref:路由优化 --- FlexJobApi.User.Application/Auths/AuthAppService.cs | 12 ++++-------- 1 files changed, 4 insertions(+), 8 deletions(-) diff --git a/FlexJobApi.User.Application/Auths/AuthAppService.cs b/FlexJobApi.User.Application/Auths/AuthAppService.cs index a2da39a..5e40ef7 100644 --- a/FlexJobApi.User.Application/Auths/AuthAppService.cs +++ b/FlexJobApi.User.Application/Auths/AuthAppService.cs @@ -1,6 +1,7 @@ 锘縰sing FlexJobApi.Core; using Furion.DynamicApiController; using Furion.FriendlyException; +using Furion.SpecificationDocument; using MediatR; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; @@ -11,14 +12,9 @@ /// 璁よ瘉 /// </summary> [Route("api/user/[controller]")] - public class AuthAppServiceV1 : IDynamicApiController + public class AuthAppService(IMediator mediator) : IDynamicApiController { - private readonly IMediator mediator; - - public AuthAppServiceV1(IMediator mediator) - { - this.mediator = mediator; - } + private readonly IMediator mediator = mediator; /// <summary> /// 瀵嗙爜鐧诲綍 @@ -27,7 +23,7 @@ /// <returns></returns> [AllowAnonymous] [IfException(ErrorCode = EnumUserErrorCodeType.u1000)] - public Task<AuthPasswordLoginCallback> PasswordLogin(AuthPasswordLoginCommand command) + public Task<PasswordLoginCommandCallback> PasswordLogin(PasswordLoginCommand command) { return mediator.Send(command); } -- Gitblit v1.9.1