Ajoute une zone d'administration des utilisateurs

This commit is contained in:
2026-04-15 21:21:26 +02:00
parent 106786a638
commit 1d18a070e5
12 changed files with 1595 additions and 5 deletions

View File

@@ -0,0 +1,28 @@
namespace ChessCubing.App.Models.Users;
public sealed class AdminUpdateUserRequest
{
public string Username { get; set; } = string.Empty;
public string? Email { get; set; }
public string? FirstName { get; set; }
public string? LastName { get; set; }
public bool IsEnabled { get; set; }
public bool IsEmailVerified { get; set; }
public string? DisplayName { get; set; }
public string? Club { get; set; }
public string? City { get; set; }
public string? PreferredFormat { get; set; }
public string? FavoriteCube { get; set; }
public string? Bio { get; set; }
}

View File

@@ -0,0 +1,40 @@
namespace ChessCubing.App.Models.Users;
public sealed class AdminUserDetailResponse
{
public string Subject { get; set; } = string.Empty;
public string Username { get; set; } = string.Empty;
public string? Email { get; set; }
public string? FirstName { get; set; }
public string? LastName { get; set; }
public string IdentityDisplayName { get; set; } = string.Empty;
public bool IsEnabled { get; set; }
public bool IsEmailVerified { get; set; }
public DateTime? AccountCreatedUtc { get; set; }
public bool HasSiteProfile { get; set; }
public string DisplayName { get; set; } = string.Empty;
public string? Club { get; set; }
public string? City { get; set; }
public string? PreferredFormat { get; set; }
public string? FavoriteCube { get; set; }
public string? Bio { get; set; }
public DateTime? SiteProfileCreatedUtc { get; set; }
public DateTime? SiteProfileUpdatedUtc { get; set; }
}

View File

@@ -0,0 +1,30 @@
namespace ChessCubing.App.Models.Users;
public sealed class AdminUserSummaryResponse
{
public string Subject { get; set; } = string.Empty;
public string Username { get; set; } = string.Empty;
public string? Email { get; set; }
public string IdentityDisplayName { get; set; } = string.Empty;
public string? SiteDisplayName { get; set; }
public bool IsEnabled { get; set; }
public bool IsEmailVerified { get; set; }
public bool HasSiteProfile { get; set; }
public string? Club { get; set; }
public string? City { get; set; }
public string? PreferredFormat { get; set; }
public DateTime? AccountCreatedUtc { get; set; }
public DateTime? SiteProfileUpdatedUtc { get; set; }
}