generated from egmont11/ASP.Net-Core-MVC-Template
InitEshop+ddd+ca
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
namespace Eshop.Application.Auth;
|
||||
|
||||
public interface IAuthenticationService
|
||||
{
|
||||
Task<SignInResultDto> SignInAsync(
|
||||
string emailOrUsername,
|
||||
string password,
|
||||
bool rememberMe,
|
||||
CancellationToken cancellationToken = default);
|
||||
|
||||
Task SignOutAsync(CancellationToken cancellationToken = default);
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
using Eshop.Application.Common;
|
||||
|
||||
namespace Eshop.Application.Auth;
|
||||
|
||||
public interface IUserAccountService
|
||||
{
|
||||
Task<ServiceResult> RegisterAsync(
|
||||
string userName,
|
||||
string email,
|
||||
string password,
|
||||
CancellationToken cancellationToken = default);
|
||||
|
||||
Task<UserProfileDto?> GetProfileAsync(
|
||||
string userId,
|
||||
CancellationToken cancellationToken = default);
|
||||
|
||||
Task<ServiceResult> UpdateProfileAsync(
|
||||
string userId,
|
||||
UpdateProfileRequest request,
|
||||
CancellationToken cancellationToken = default);
|
||||
|
||||
Task<ServiceResult> DeleteAccountAsync(
|
||||
string userId,
|
||||
CancellationToken cancellationToken = default);
|
||||
|
||||
Task<UserDataExportDto?> ExportUserDataAsync(
|
||||
string userId,
|
||||
CancellationToken cancellationToken = default);
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using Eshop.Application.Common;
|
||||
|
||||
namespace Eshop.Application.Auth;
|
||||
|
||||
public interface IUserAdministrationService
|
||||
{
|
||||
Task<IReadOnlyList<UserWithRolesDto>> GetAllUsersWithRolesAsync(
|
||||
CancellationToken cancellationToken = default);
|
||||
|
||||
Task<UserWithRolesDto?> GetUserWithRolesAsync(
|
||||
string userId,
|
||||
CancellationToken cancellationToken = default);
|
||||
|
||||
Task<ServiceResult> UpdateUserRolesAsync(
|
||||
string userId,
|
||||
IReadOnlyList<string> selectedRoles,
|
||||
CancellationToken cancellationToken = default);
|
||||
}
|
||||
Reference in New Issue
Block a user