36 lines
899 B
C#
36 lines
899 B
C#
using MediatR;
|
|
using TakeoutSaaS.Application.Identity.Contracts;
|
|
|
|
namespace TakeoutSaaS.Application.Identity.Commands;
|
|
|
|
/// <summary>
|
|
/// 更新角色模板命令。
|
|
/// </summary>
|
|
public sealed record UpdateRoleTemplateCommand : IRequest<RoleTemplateDto?>
|
|
{
|
|
/// <summary>
|
|
/// 模板编码(路径参数)。
|
|
/// </summary>
|
|
public string TemplateCode { get; init; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// 模板名称。
|
|
/// </summary>
|
|
public string Name { get; init; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// 模板描述。
|
|
/// </summary>
|
|
public string? Description { get; init; }
|
|
|
|
/// <summary>
|
|
/// 是否启用。
|
|
/// </summary>
|
|
public bool IsActive { get; init; } = true;
|
|
|
|
/// <summary>
|
|
/// 权限编码集合。
|
|
/// </summary>
|
|
public IReadOnlyCollection<string> PermissionCodes { get; init; } = Array.Empty<string>();
|
|
}
|