21 lines
502 B
C#
21 lines
502 B
C#
using MediatR;
|
||
using TakeoutSaaS.Application.Identity.Contracts;
|
||
|
||
namespace TakeoutSaaS.Application.Identity.Commands;
|
||
|
||
/// <summary>
|
||
/// 更新角色。
|
||
/// </summary>
|
||
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; }
|
||
}
|