Add user manager page (#22)
Reviewed-on: #22
This commit was merged in pull request #22.
This commit is contained in:
@@ -7,7 +7,9 @@ public class GlobalConstants
|
||||
public readonly static Guid MEMBER_ID = Guid.Parse("{BCE14DEA-1748-4A76-8485-ADEE83DF5EFD}");
|
||||
|
||||
public const string ADMINISTRATOR = "Administrateur";
|
||||
public const string ADMINISTRATOR_NORMALIZED = "ADMINISTRATEUR";
|
||||
public const string MEMBER = "Membre";
|
||||
public const string MEMBER_NORMALIZED = "MEMBRE";
|
||||
public const string ADMIN_MEMBER = $"{ADMINISTRATOR}, {MEMBER}";
|
||||
|
||||
public const int JWT_DURATION_HOUR = 12;
|
||||
|
||||
6
src/GameIdeas/GameIdeas.Shared/Dto/IdDto.cs
Normal file
6
src/GameIdeas/GameIdeas.Shared/Dto/IdDto.cs
Normal file
@@ -0,0 +1,6 @@
|
||||
namespace GameIdeas.Shared.Dto;
|
||||
|
||||
public class IdDto
|
||||
{
|
||||
public string? Id { get; set; }
|
||||
}
|
||||
7
src/GameIdeas/GameIdeas.Shared/Dto/RoleDto.cs
Normal file
7
src/GameIdeas/GameIdeas.Shared/Dto/RoleDto.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
namespace GameIdeas.Shared.Dto;
|
||||
|
||||
public class RoleDto
|
||||
{
|
||||
public string Id { get; set; } = string.Empty;
|
||||
public string Name { get; set; } = string.Empty;
|
||||
}
|
||||
@@ -4,8 +4,8 @@ namespace GameIdeas.Shared.Dto;
|
||||
|
||||
public class UserDto
|
||||
{
|
||||
public int? Id { get; set; }
|
||||
public string? Id { get; set; }
|
||||
public string? Username { get; set; }
|
||||
public string? Password { get; set; }
|
||||
public string? RoleId { get; set; }
|
||||
public RoleDto? Role { get; set; }
|
||||
}
|
||||
|
||||
8
src/GameIdeas/GameIdeas.Shared/Dto/UserFilterDto.cs
Normal file
8
src/GameIdeas/GameIdeas.Shared/Dto/UserFilterDto.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
namespace GameIdeas.Shared.Dto;
|
||||
|
||||
public class UserFilterDto
|
||||
{
|
||||
public int CurrentPage { get; set; }
|
||||
public string? Name { get; set; }
|
||||
public IEnumerable<string>? RoleIds { get; set; }
|
||||
}
|
||||
7
src/GameIdeas/GameIdeas.Shared/Dto/UserListDto.cs
Normal file
7
src/GameIdeas/GameIdeas.Shared/Dto/UserListDto.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
namespace GameIdeas.Shared.Dto;
|
||||
|
||||
public class UserListDto
|
||||
{
|
||||
public IEnumerable<UserDto>? Users { get; set; }
|
||||
public int UsersCount { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user