| | |
| | | using FlexJobApi.Core; |
| | | using Furion.DynamicApiController; |
| | | using Furion.FriendlyException; |
| | | using MediatR; |
| | | using Microsoft.AspNetCore.Authorization; |
| | | using Microsoft.AspNetCore.Mvc; |
| | | //using FlexJobApi.Core; |
| | | //using Furion.DynamicApiController; |
| | | //using Furion.FriendlyException; |
| | | //using MediatR; |
| | | //using Microsoft.AspNetCore.Authorization; |
| | | //using Microsoft.AspNetCore.Mvc; |
| | | |
| | | namespace FlexJobApi.User.Application |
| | | { |
| | | /// <summary> |
| | | /// 认证 |
| | | /// </summary> |
| | | [Route("api/user/[controller]")] |
| | | public class AuthAppServiceV1 : IDynamicApiController |
| | | { |
| | | private readonly IMediator mediator; |
| | | //namespace FlexJobApi.User.Application |
| | | //{ |
| | | // /// <summary> |
| | | // /// 认证 |
| | | // /// </summary> |
| | | // [Route("api/user/[controller]")] |
| | | // public class AuthAppService(IMediator mediator) : IDynamicApiController |
| | | // { |
| | | // private readonly IMediator mediator = mediator; |
| | | |
| | | public AuthAppServiceV1(IMediator mediator) |
| | | { |
| | | this.mediator = mediator; |
| | | } |
| | | // /// <summary> |
| | | // /// 获取阿里云OSS授权信息 |
| | | // /// </summary> |
| | | // /// <param name="query"></param> |
| | | // /// <returns></returns> |
| | | // [AllowAnonymous] |
| | | // public Task<GetAliyunOSSAcsQueryResult> GetAliyunOSSAcs(GetAliyunOSSAcsQuery query) |
| | | // { |
| | | // return mediator.Send(query); |
| | | // } |
| | | |
| | | /// <summary> |
| | | /// 密码登录 |
| | | /// </summary> |
| | | /// <param name="command"></param> |
| | | /// <returns></returns> |
| | | [AllowAnonymous] |
| | | [IfException(ErrorCode = EnumUserErrorCodeType.u1000)] |
| | | public Task<AuthPasswordLoginCallback> PasswordLogin(AuthPasswordLoginCommand command) |
| | | { |
| | | return mediator.Send(command); |
| | | } |
| | | } |
| | | } |
| | | // /// <summary> |
| | | // /// 密码登录 |
| | | // /// </summary> |
| | | // /// <param name="command"></param> |
| | | // /// <returns></returns> |
| | | // [AllowAnonymous] |
| | | // [IfException(ErrorCode = EnumUserErrorCodeType.u1000)] |
| | | // public Task<PasswordLoginCommandCallback> PasswordLogin(PasswordLoginCommand command) |
| | | // { |
| | | // return mediator.Send(command); |
| | | // } |
| | | // } |
| | | //} |