-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
42 changed files
with
90 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 0 additions & 10 deletions
10
...mpany.Orion.Application.Core/Commands/LoginWithCredentials/LoginWithCredentialsRequest.cs
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
...any.Orion.Application.Core/Commands/LoginWithRefreshToken/LoginWithRefreshTokenRequest.cs
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
...ny.Orion.Application.Core/Commands/LoginWithRefreshToken/LoginWithRefreshTokenResponse.cs
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
src/Company.Orion.Application.Core/Company.Orion.Application.Core.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 0 additions & 7 deletions
7
src/Company.Orion.Application.Core/Queries/UserGetPaginated/UserGetPaginatedRequest.cs
This file was deleted.
Oops, something went wrong.
10 changes: 10 additions & 0 deletions
10
...plication.Core/UseCases/Auth/Commands/LoginWithCredentials/LoginWithCredentialsRequest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using MediatR; | ||
|
||
namespace Company.Orion.Application.Core.UseCases.Auth.Commands.LoginWithCredentials; | ||
|
||
public class LoginWithCredentialsRequest : IRequest<LoginWithCredentialsResponse> | ||
{ | ||
public string Email { get; set; } | ||
public string Password { get; set; } | ||
} | ||
|
2 changes: 1 addition & 1 deletion
2
...als/LoginWithCredentialsRequestHandler.cs → ...als/LoginWithCredentialsRequestHandler.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...edentials/LoginWithCredentialsResponse.cs → ...edentials/LoginWithCredentialsResponse.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
...ication.Core/UseCases/Auth/Commands/LoginWithRefreshToken/LoginWithRefreshTokenRequest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using MediatR; | ||
|
||
namespace Company.Orion.Application.Core.UseCases.Auth.Commands.LoginWithRefreshToken; | ||
|
||
public class LoginWithRefreshTokenRequest : IRequest<LoginWithRefreshTokenResponse> | ||
{ | ||
public string Token { get; set; } | ||
public string RefreshToken { get; set; } | ||
} | ||
|
2 changes: 1 addition & 1 deletion
2
...en/LoginWithRefreshTokenRequestHandler.cs → ...en/LoginWithRefreshTokenRequestHandler.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
...cation.Core/UseCases/Auth/Commands/LoginWithRefreshToken/LoginWithRefreshTokenResponse.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
using Company.Orion.Application.Core.UseCases.Auth.Commands.LoginWithCredentials; | ||
|
||
namespace Company.Orion.Application.Core.UseCases.Auth.Commands.LoginWithRefreshToken; | ||
|
||
public class LoginWithRefreshTokenResponse : LoginWithCredentialsResponse; |
2 changes: 1 addition & 1 deletion
2
...angePassword/UserChangePasswordRequest.cs → ...angePassword/UserChangePasswordRequest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...Commands/UserCreate/UserCreateResponse.cs → ...ser/Commands/Create/UserCreateResponse.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../Commands/UserDelete/UserDeleteRequest.cs → ...User/Commands/Delete/UserDeleteRequest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
using MediatR; | ||
|
||
namespace Company.Orion.Application.Core.Commands.UserDelete; | ||
namespace Company.Orion.Application.Core.UseCases.User.Commands.Delete; | ||
|
||
public record UserDeleteRequest(string PublicId) : IRequest; |
2 changes: 1 addition & 1 deletion
2
...ds/UserDelete/UserDeleteRequestHandler.cs → ...mmands/Delete/UserDeleteRequestHandler.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ds/UserUpdate/UserUpdateRequestHandler.cs → ...mmands/Update/UserUpdateRequestHandler.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ns/UserCreated/UserCreatedNotification.cs → ...ns/UserCreated/UserCreatedNotification.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...hanged/UserPasswordChangedNotification.cs → ...hanged/UserPasswordChangedNotification.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
using MediatR; | ||
|
||
namespace Company.Orion.Application.Core.Notifications.UserPasswordChanged | ||
namespace Company.Orion.Application.Core.UseCases.User.Notifications.UserPasswordChanged | ||
{ | ||
public class UserPasswordChangedNotification : INotification; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...Queries/UserGetById/UserGetByIdRequest.cs → ...ser/Queries/GetById/UserGetByIdRequest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
using MediatR; | ||
|
||
namespace Company.Orion.Application.Core.Queries.UserGetById; | ||
namespace Company.Orion.Application.Core.UseCases.User.Queries.GetById; | ||
|
||
public record UserGetByIdRequest(string PublicId) : IRequest<UserGetByIdResponse>; |
4 changes: 2 additions & 2 deletions
4
.../UserGetById/UserGetByIdRequestHandler.cs → ...ries/GetById/UserGetByIdRequestHandler.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
using MediatR; | ||
using Company.Orion.Domain.Core.Services.Interfaces; | ||
|
||
namespace Company.Orion.Application.Core.Queries.UserGetById; | ||
namespace Company.Orion.Application.Core.UseCases.User.Queries.GetById; | ||
|
||
public class UserGetByIdHandler(IUserService userService) : IRequestHandler<UserGetByIdRequest, UserGetByIdResponse> | ||
{ | ||
public async Task<UserGetByIdResponse> Handle(UserGetByIdRequest request, CancellationToken cancellationToken) | ||
{ | ||
return (UserGetByIdResponse) await userService.FindByIdAsync(request.PublicId); | ||
return (UserGetByIdResponse)await userService.FindByIdAsync(request.PublicId); | ||
} | ||
} |
Oops, something went wrong.