20 lines
434 B
C#
20 lines
434 B
C#
using MediatR;
|
|
|
|
namespace TakeoutSaaS.Application.Identity.Commands;
|
|
|
|
/// <summary>
|
|
/// 为用户分配角色(覆盖式)。
|
|
/// </summary>
|
|
public sealed record AssignUserRolesCommand : IRequest<bool>
|
|
{
|
|
/// <summary>
|
|
/// 用户 ID。
|
|
/// </summary>
|
|
public long UserId { get; init; }
|
|
|
|
/// <summary>
|
|
/// 角色 ID 集合。
|
|
/// </summary>
|
|
public long[] RoleIds { get; init; } = Array.Empty<long>();
|
|
}
|