fix: allow super admin tenant-scoped role ops

This commit is contained in:
2025-12-05 23:07:31 +08:00
parent 1060ab13d6
commit d7772b0f8d
13 changed files with 64 additions and 28 deletions

View File

@@ -9,6 +9,12 @@ namespace TakeoutSaaS.Application.Identity.Commands;
public sealed record UpdateRoleCommand : IRequest<RoleDto?>
{
public long RoleId { get; init; }
/// <summary>
/// 租户 ID空则取当前上下文
/// </summary>
public long? TenantId { get; init; }
public string Name { get; init; } = string.Empty;
public string? Description { get; init; }
}