20 lines
405 B
C#
20 lines
405 B
C#
using MediatR;
|
||
|
||
namespace TakeoutSaaS.Application.Identity.Commands;
|
||
|
||
/// <summary>
|
||
/// 删除角色。
|
||
/// </summary>
|
||
public sealed record DeleteRoleCommand : IRequest<bool>
|
||
{
|
||
/// <summary>
|
||
/// 角色 ID。
|
||
/// </summary>
|
||
public long RoleId { get; init; }
|
||
|
||
/// <summary>
|
||
/// 租户 ID(空则取当前上下文)。
|
||
/// </summary>
|
||
public long? TenantId { get; init; }
|
||
}
|