using MediatR; namespace TakeoutSaaS.Application.Identity.Commands; /// /// 绑定角色权限(覆盖式)。 /// public sealed record BindRolePermissionsCommand : IRequest { /// /// 角色 ID。 /// public long RoleId { get; init; } /// /// 租户 ID(可选,空则取当前上下文)。 /// public long? TenantId { get; init; } /// /// 权限 ID 集合。 /// public long[] PermissionIds { get; init; } = Array.Empty(); }