generated from egmont11/ASP.Net-Core-MVC-Template
InitEshop+ddd+ca
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
namespace Eshop.Application.Auth;
|
||||
|
||||
public sealed class SignInResultDto
|
||||
{
|
||||
public bool Succeeded { get; private init; }
|
||||
|
||||
public static SignInResultDto Success => new() { Succeeded = true };
|
||||
public static SignInResultDto Failure => new() { Succeeded = false };
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace Eshop.Application.Auth;
|
||||
|
||||
public sealed record UserDataExportDto(
|
||||
string Id,
|
||||
string UserName,
|
||||
string Email,
|
||||
IReadOnlyList<string> Roles,
|
||||
DateTime ExportDate);
|
||||
@@ -0,0 +1,3 @@
|
||||
namespace Eshop.Application.Auth;
|
||||
|
||||
public sealed record UserDto(string Id, string UserName, string Email);
|
||||
@@ -0,0 +1,3 @@
|
||||
namespace Eshop.Application.Auth;
|
||||
|
||||
public sealed record UserProfileDto(string UserName, string Email);
|
||||
@@ -0,0 +1,6 @@
|
||||
namespace Eshop.Application.Auth;
|
||||
|
||||
public sealed record UserWithRolesDto(
|
||||
UserDto User,
|
||||
IReadOnlyList<string> Roles,
|
||||
IReadOnlyList<string> AllRoles);
|
||||
Reference in New Issue
Block a user